Package adams.data.statistics
Class L1PointStatistic
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.data.statistics.AbstractDataStatistic<L1Point>
-
- adams.data.statistics.L1PointStatistic
-
- All Implemented Interfaces:
adams.core.CleanUpHandler
,adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.data.statistics.InformativeStatistic
,Serializable
public class L1PointStatistic extends adams.data.statistics.AbstractDataStatistic<L1Point>
A Level 1 point specific statistic.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_DBID
the key for the database ID.static String
KEY_MAX_X
the key for max x.static String
KEY_MAX_Y
the key for max y.static String
KEY_MEAN_X
the key for mean x.static String
KEY_MEAN_Y
the key for mean y.static String
KEY_MEDIAN_X
the key for median x.static String
KEY_MEDIAN_Y
the key for median y.static String
KEY_MIN_X
the key for min x.static String
KEY_MIN_Y
the key for min y.static String
KEY_NUM_LEVEL2
the key for number of MS points.static String
KEY_X
the key for the timestamp.static String
KEY_Y
the key for abundance.
-
Constructor Summary
Constructors Constructor Description L1PointStatistic()
Initializes the statistic.L1PointStatistic(L1Point data)
Initializes the statistic.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
calculate()
calculates the statistics.void
cleanUp()
Cleans up data structures, frees up memory.String
getStatisticDescription()
Returns a description for this statistic, i.e., chromatgram ID and timestamp.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.data.statistics.AbstractDataStatistic
add, clear, getData, getStatistic, numberToDouble, setData, statisticNames, toSpreadSheet, toString
-
-
-
-
Field Detail
-
KEY_DBID
public static final String KEY_DBID
the key for the database ID.- See Also:
- Constant Field Values
-
KEY_Y
public static final String KEY_Y
the key for abundance.- See Also:
- Constant Field Values
-
KEY_X
public static final String KEY_X
the key for the timestamp.- See Also:
- Constant Field Values
-
KEY_NUM_LEVEL2
public static final String KEY_NUM_LEVEL2
the key for number of MS points.- See Also:
- Constant Field Values
-
KEY_MIN_X
public static final String KEY_MIN_X
the key for min x.- See Also:
- Constant Field Values
-
KEY_MAX_X
public static final String KEY_MAX_X
the key for max x.- See Also:
- Constant Field Values
-
KEY_MEAN_X
public static final String KEY_MEAN_X
the key for mean x.- See Also:
- Constant Field Values
-
KEY_MEDIAN_X
public static final String KEY_MEDIAN_X
the key for median x.- See Also:
- Constant Field Values
-
KEY_MIN_Y
public static final String KEY_MIN_Y
the key for min y.- See Also:
- Constant Field Values
-
KEY_MAX_Y
public static final String KEY_MAX_Y
the key for max y.- See Also:
- Constant Field Values
-
KEY_MEAN_Y
public static final String KEY_MEAN_Y
the key for mean y.- See Also:
- Constant Field Values
-
KEY_MEDIAN_Y
public static final String KEY_MEDIAN_Y
the key for median y.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
L1PointStatistic
public L1PointStatistic()
Initializes the statistic.
-
L1PointStatistic
public L1PointStatistic(L1Point data)
Initializes the statistic.- Parameters:
data
- the gc point to generate the statistics for
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in classadams.data.statistics.AbstractDataStatistic<L1Point>
- Returns:
- a description suitable for displaying in the gui
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUp
in interfaceadams.core.CleanUpHandler
- Overrides:
cleanUp
in classadams.data.statistics.AbstractDataStatistic<L1Point>
-
getStatisticDescription
public String getStatisticDescription()
Returns a description for this statistic, i.e., chromatgram ID and timestamp.- Returns:
- the description
-
calculate
protected void calculate()
calculates the statistics.- Overrides:
calculate
in classadams.data.statistics.AbstractDataStatistic<L1Point>
-
-