|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mobios.type.IndexObject mobios.type.DoubleVector mobios.type.Spectra
public class Spectra
Represents a spectra. The only difference between a Spectra
and a DoubleVector
is
that the values in a Spectra
are sorted from smallest to largest.
Constructor Summary | |
---|---|
Spectra()
Default Constructor. |
|
Spectra(mobios.db.Table table,
int rowID,
double[] spectra)
|
|
Spectra(mobios.db.Table table,
int rowID,
String spectra)
Constructor. |
Method Summary | |
---|---|
IndexObject[] |
expand()
This method is necessary to implement bucketing, so that similar objects are only stored once in the database. |
double |
getMax()
|
double |
getMin()
|
void |
sortAsc()
Sorts the Spectra from smallest to largest values. |
Methods inherited from class mobios.type.DoubleVector |
---|
compareTo, compareTo, equals, getData, hashCode, readExternal, size, toString, writeExternal |
Methods inherited from class mobios.type.IndexObject |
---|
getRowID, setRowID, setRowIDLength |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Spectra()
public Spectra(mobios.db.Table table, int rowID, String spectra)
table
- the table this spectra comes fromrowID
- the rowID of this spectra in its tablespectra
- a space-separated String
of doubles representing a spectra.public Spectra(mobios.db.Table table, int rowID, double[] spectra)
table
- the table this spectra comes fromrowID
- the rowID of this spectra in its tablespectra
- an array of doubles representing a spectraMethod Detail |
---|
public void sortAsc()
public double getMin()
Spectra
.public double getMax()
Spectra
.public IndexObject[] expand()
IndexObject
expand
in class DoubleVector
IndexObject
s
|
Mobios v0.91 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |