Package adams.data.trail
Class TrailStatistic
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.data.statistics.AbstractDataStatistic<Trail>
-
- adams.data.trail.TrailStatistic
-
- All Implemented Interfaces:
adams.core.CleanUpHandler,adams.core.logging.LoggingSupporter,adams.core.SizeOfHandler,adams.data.spreadsheet.SpreadSheetSupporter,adams.data.statistics.InformativeStatistic,Serializable
public class TrailStatistic extends adams.data.statistics.AbstractDataStatistic<Trail>
Statistical information specific to a trail.- Version:
- $Revision: 2162 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIRST_TIMESTAMPstatic StringLAST_TIMESTAMPstatic StringMAX_DELTA_TIMESTAMPstatic StringMAX_DELTA_Xstatic StringMAX_DELTA_Ystatic StringMAX_Xstatic StringMAX_Ystatic StringMEAN_DELTA_TIMESTAMPstatic StringMEAN_DELTA_Xstatic StringMEAN_DELTA_Ystatic StringMEDIAN_DELTA_TIMESTAMPstatic StringMEDIAN_DELTA_Xstatic StringMEDIAN_DELTA_Ystatic StringMIN_DELTA_TIMESTAMPstatic StringMIN_DELTA_Xstatic StringMIN_DELTA_Ystatic StringMIN_Xstatic StringMIN_Ystatic StringNUMBER_OF_POINTSstatic StringSTDEV_DELTA_TIMESTAMPstatic StringSTDEV_DELTA_Xstatic StringSTDEV_DELTA_Y
-
Constructor Summary
Constructors Constructor Description TrailStatistic()Initializes the statistic.TrailStatistic(Trail 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.TrailgetData()Returns the currently stored trail.StringgetStatisticDescription()Returns a description for this statistic, i.e., trail ID.StringglobalInfo()Returns a string describing the object.voidsetData(Trail value)Sets the data to use as basis for the calculations.-
Methods inherited from class adams.data.statistics.AbstractDataStatistic
add, clear, getStatistic, numberToDouble, statisticNames, toSpreadSheet, toString
-
-
-
-
Field Detail
-
MIN_X
public static final String MIN_X
- See Also:
- Constant Field Values
-
MAX_X
public static final String MAX_X
- See Also:
- Constant Field Values
-
MIN_Y
public static final String MIN_Y
- See Also:
- Constant Field Values
-
MAX_Y
public static final String MAX_Y
- See Also:
- Constant Field Values
-
MEDIAN_DELTA_Y
public static final String MEDIAN_DELTA_Y
- See Also:
- Constant Field Values
-
STDEV_DELTA_Y
public static final String STDEV_DELTA_Y
- See Also:
- Constant Field Values
-
MEAN_DELTA_Y
public static final String MEAN_DELTA_Y
- See Also:
- Constant Field Values
-
MAX_DELTA_Y
public static final String MAX_DELTA_Y
- See Also:
- Constant Field Values
-
MIN_DELTA_Y
public static final String MIN_DELTA_Y
- See Also:
- Constant Field Values
-
MEDIAN_DELTA_X
public static final String MEDIAN_DELTA_X
- See Also:
- Constant Field Values
-
STDEV_DELTA_X
public static final String STDEV_DELTA_X
- See Also:
- Constant Field Values
-
MEAN_DELTA_X
public static final String MEAN_DELTA_X
- See Also:
- Constant Field Values
-
MAX_DELTA_X
public static final String MAX_DELTA_X
- See Also:
- Constant Field Values
-
MIN_DELTA_X
public static final String MIN_DELTA_X
- See Also:
- Constant Field Values
-
MEDIAN_DELTA_TIMESTAMP
public static final String MEDIAN_DELTA_TIMESTAMP
- See Also:
- Constant Field Values
-
STDEV_DELTA_TIMESTAMP
public static final String STDEV_DELTA_TIMESTAMP
- See Also:
- Constant Field Values
-
MEAN_DELTA_TIMESTAMP
public static final String MEAN_DELTA_TIMESTAMP
- See Also:
- Constant Field Values
-
MAX_DELTA_TIMESTAMP
public static final String MAX_DELTA_TIMESTAMP
- See Also:
- Constant Field Values
-
MIN_DELTA_TIMESTAMP
public static final String MIN_DELTA_TIMESTAMP
- See Also:
- Constant Field Values
-
LAST_TIMESTAMP
public static final String LAST_TIMESTAMP
- See Also:
- Constant Field Values
-
FIRST_TIMESTAMP
public static final String FIRST_TIMESTAMP
- See Also:
- Constant Field Values
-
NUMBER_OF_POINTS
public static final String NUMBER_OF_POINTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TrailStatistic
public TrailStatistic()
Initializes the statistic.
-
TrailStatistic
public TrailStatistic(Trail data)
Initializes the statistic.- Parameters:
data- the trail to generate the statistics for
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin classadams.data.statistics.AbstractDataStatistic<Trail>- 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<Trail>
-
setData
public void setData(Trail value)
Sets the data to use as basis for the calculations.- Overrides:
setDatain classadams.data.statistics.AbstractDataStatistic<Trail>- Parameters:
value- the trail to use, can be null
-
getData
public Trail getData()
Returns the currently stored trail.- Overrides:
getDatain classadams.data.statistics.AbstractDataStatistic<Trail>- Returns:
- the trail, can be null
-
getStatisticDescription
public String getStatisticDescription()
Returns a description for this statistic, i.e., trail ID.- Returns:
- the description
-
calculate
protected void calculate()
calculates the statistics.- Overrides:
calculatein classadams.data.statistics.AbstractDataStatistic<Trail>
-
-