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 StringKEY_DBIDthe key for the database ID.static StringKEY_FIRST_Xthe key for first X.static StringKEY_FIRST_Ythe key for first Y.static StringKEY_FIRST_Zthe key for first Z.static StringKEY_LAST_Xthe key for last X.static StringKEY_LAST_Ythe key for last Y.static StringKEY_LAST_Zthe key for last Z.static StringKEY_MAX_DATAthe key for max data.static StringKEY_MAX_DELTA_Xthe key for max delta X.static StringKEY_MAX_DELTA_Ythe key for max delta Y.static StringKEY_MAX_DELTA_Zthe key for max delta Z.static StringKEY_MEAN_DATAthe key for mean data.static StringKEY_MEAN_DELTA_Xthe key for mean delta X.static StringKEY_MEAN_DELTA_Ythe key for mean delta Y.static StringKEY_MEAN_DELTA_Zthe key for mean delta Z.static StringKEY_MEDIAN_DATAthe key for median data.static StringKEY_MEDIAN_DELTA_Xthe key for median delta X.static StringKEY_MEDIAN_DELTA_Ythe key for median delta Y.static StringKEY_MEDIAN_DELTA_Zthe key for median delta Z.static StringKEY_MIN_DATAthe key for min data.static StringKEY_MIN_DELTA_Xthe key for min delta X.static StringKEY_MIN_DELTA_Ythe key for min delta Y.static StringKEY_MIN_DELTA_Zthe key for min delta Z.static StringKEY_NUM_DATAthe key for number of unique data values.static StringKEY_NUM_Xthe key for number of unique x values.static StringKEY_NUM_Ythe key for number of unique y values.static StringKEY_NUM_Zthe key for number of unique z values.static StringKEY_STDEV_DATAthe key for stdev data.static StringKEY_STDEV_DELTA_Xthe key for stdev delta X.static StringKEY_STDEV_DELTA_Ythe key for stdev delta Y.static StringKEY_STDEV_DELTA_Zthe 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 voidcalculate()calculates the statistics.voidcleanUp()Cleans up data structures, frees up memory.StringgetStatisticDescription()Returns a description for this statistic, i.e., ID.StringglobalInfo()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:
globalInfoin 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:
cleanUpin interfaceadams.core.CleanUpHandler- Overrides:
cleanUpin 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:
calculatein classadams.data.statistics.AbstractDataStatistic<ThreeWayData>
-
-