Package adams.data.statistics
Class ThreeWayDataStatistic
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.data.statistics.AbstractDataStatistic<ThreeWayData>
-
- adams.data.statistics.ThreeWayDataStatistic
-
- All Implemented Interfaces:
adams.core.CleanUpHandler
,adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.data.statistics.InformativeStatistic
,Serializable
public class ThreeWayDataStatistic extends adams.data.statistics.AbstractDataStatistic<ThreeWayData>
Statistical information specific to a ThreeWayData.- Version:
- $Revision: 4221 $
- 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_FIRST_X
the key for first X.static String
KEY_FIRST_Y
the key for first Y.static String
KEY_FIRST_Z
the key for first Z.static String
KEY_LAST_X
the key for last X.static String
KEY_LAST_Y
the key for last Y.static String
KEY_LAST_Z
the key for last Z.static String
KEY_MAX_DATA
the key for max data.static String
KEY_MAX_DELTA_X
the key for max delta X.static String
KEY_MAX_DELTA_Y
the key for max delta Y.static String
KEY_MAX_DELTA_Z
the key for max delta Z.static String
KEY_MEAN_DATA
the key for mean data.static String
KEY_MEAN_DELTA_X
the key for mean delta X.static String
KEY_MEAN_DELTA_Y
the key for mean delta Y.static String
KEY_MEAN_DELTA_Z
the key for mean delta Z.static String
KEY_MEDIAN_DATA
the key for median data.static String
KEY_MEDIAN_DELTA_X
the key for median delta X.static String
KEY_MEDIAN_DELTA_Y
the key for median delta Y.static String
KEY_MEDIAN_DELTA_Z
the key for median delta Z.static String
KEY_MIN_DATA
the key for min data.static String
KEY_MIN_DELTA_X
the key for min delta X.static String
KEY_MIN_DELTA_Y
the key for min delta Y.static String
KEY_MIN_DELTA_Z
the key for min delta Z.static String
KEY_NUM_DATA
the key for number of unique data values.static String
KEY_NUM_X
the key for number of unique x values.static String
KEY_NUM_Y
the key for number of unique y values.static String
KEY_NUM_Z
the key for number of unique z values.static String
KEY_STDEV_DATA
the key for stdev data.static String
KEY_STDEV_DELTA_X
the key for stdev delta X.static String
KEY_STDEV_DELTA_Y
the key for stdev delta Y.static String
KEY_STDEV_DELTA_Z
the key for stdev delta Z.
-
Constructor Summary
Constructors Constructor Description ThreeWayDataStatistic()
Initializes the statistic.ThreeWayDataStatistic(ThreeWayData 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., ID.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_NUM_X
public static final String KEY_NUM_X
the key for number of unique x values.- See Also:
- Constant Field Values
-
KEY_NUM_Y
public static final String KEY_NUM_Y
the key for number of unique y values.- See Also:
- Constant Field Values
-
KEY_NUM_Z
public static final String KEY_NUM_Z
the key for number of unique z values.- See Also:
- Constant Field Values
-
KEY_NUM_DATA
public static final String KEY_NUM_DATA
the key for number of unique data values.- See Also:
- Constant Field Values
-
KEY_FIRST_X
public static final String KEY_FIRST_X
the key for first X.- See Also:
- Constant Field Values
-
KEY_LAST_X
public static final String KEY_LAST_X
the key for last X.- See Also:
- Constant Field Values
-
KEY_MIN_DELTA_X
public static final String KEY_MIN_DELTA_X
the key for min delta X.- See Also:
- Constant Field Values
-
KEY_MAX_DELTA_X
public static final String KEY_MAX_DELTA_X
the key for max delta X.- See Also:
- Constant Field Values
-
KEY_MEAN_DELTA_X
public static final String KEY_MEAN_DELTA_X
the key for mean delta X.- See Also:
- Constant Field Values
-
KEY_STDEV_DELTA_X
public static final String KEY_STDEV_DELTA_X
the key for stdev delta X.- See Also:
- Constant Field Values
-
KEY_MEDIAN_DELTA_X
public static final String KEY_MEDIAN_DELTA_X
the key for median delta X.- See Also:
- Constant Field Values
-
KEY_FIRST_Y
public static final String KEY_FIRST_Y
the key for first Y.- See Also:
- Constant Field Values
-
KEY_LAST_Y
public static final String KEY_LAST_Y
the key for last Y.- See Also:
- Constant Field Values
-
KEY_MIN_DELTA_Y
public static final String KEY_MIN_DELTA_Y
the key for min delta Y.- See Also:
- Constant Field Values
-
KEY_MAX_DELTA_Y
public static final String KEY_MAX_DELTA_Y
the key for max delta Y.- See Also:
- Constant Field Values
-
KEY_MEAN_DELTA_Y
public static final String KEY_MEAN_DELTA_Y
the key for mean delta Y.- See Also:
- Constant Field Values
-
KEY_STDEV_DELTA_Y
public static final String KEY_STDEV_DELTA_Y
the key for stdev delta Y.- See Also:
- Constant Field Values
-
KEY_MEDIAN_DELTA_Y
public static final String KEY_MEDIAN_DELTA_Y
the key for median delta Y.- See Also:
- Constant Field Values
-
KEY_FIRST_Z
public static final String KEY_FIRST_Z
the key for first Z.- See Also:
- Constant Field Values
-
KEY_LAST_Z
public static final String KEY_LAST_Z
the key for last Z.- See Also:
- Constant Field Values
-
KEY_MIN_DELTA_Z
public static final String KEY_MIN_DELTA_Z
the key for min delta Z.- See Also:
- Constant Field Values
-
KEY_MAX_DELTA_Z
public static final String KEY_MAX_DELTA_Z
the key for max delta Z.- See Also:
- Constant Field Values
-
KEY_MEAN_DELTA_Z
public static final String KEY_MEAN_DELTA_Z
the key for mean delta Z.- See Also:
- Constant Field Values
-
KEY_STDEV_DELTA_Z
public static final String KEY_STDEV_DELTA_Z
the key for stdev delta Z.- See Also:
- Constant Field Values
-
KEY_MEDIAN_DELTA_Z
public static final String KEY_MEDIAN_DELTA_Z
the key for median delta Z.- See Also:
- Constant Field Values
-
KEY_MIN_DATA
public static final String KEY_MIN_DATA
the key for min data.- See Also:
- Constant Field Values
-
KEY_MAX_DATA
public static final String KEY_MAX_DATA
the key for max data.- See Also:
- Constant Field Values
-
KEY_MEAN_DATA
public static final String KEY_MEAN_DATA
the key for mean data.- See Also:
- Constant Field Values
-
KEY_STDEV_DATA
public static final String KEY_STDEV_DATA
the key for stdev data.- See Also:
- Constant Field Values
-
KEY_MEDIAN_DATA
public static final String KEY_MEDIAN_DATA
the key for median data.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ThreeWayDataStatistic
public ThreeWayDataStatistic()
Initializes the statistic.
-
ThreeWayDataStatistic
public ThreeWayDataStatistic(ThreeWayData data)
Initializes the statistic.- Parameters:
data
- the data 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<ThreeWayData>
- 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<ThreeWayData>
-
getStatisticDescription
public String getStatisticDescription()
Returns a description for this statistic, i.e., ID.- Returns:
- the description
-
calculate
protected void calculate()
calculates the statistics.- Overrides:
calculate
in classadams.data.statistics.AbstractDataStatistic<ThreeWayData>
-
-