Package adams.data.statistics
Class TimeseriesStatistic<T extends Timeseries>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.data.statistics.AbstractDataStatistic<T>
-
- adams.data.statistics.TimeseriesStatistic<T>
-
- All Implemented Interfaces:
CleanUpHandler,LoggingSupporter,SizeOfHandler,SpreadSheetSupporter,InformativeStatistic,Serializable
public class TimeseriesStatistic<T extends Timeseries> extends AbstractDataStatistic<T>
Statistical information specific to a Timeseries.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATABASE_IDstatic StringMAX_DELTA_TIMESTAMPstatic StringMAX_VALUEstatic StringMEAN_DELTA_TIMESTAMPstatic StringMEAN_VALUEstatic StringMEDIAN_DELTA_TIMESTAMPstatic StringMEDIAN_VALUEstatic StringMIN_DELTA_TIMESTAMPstatic StringMIN_VALUEstatic StringNUMBER_OF_POINTSstatic StringSTDEV_DELTA_TIMESTAMPstatic StringSTDEV_VALUE-
Fields inherited from class adams.data.statistics.AbstractDataStatistic
m_Calculated, m_Data, m_Names, m_Statistics
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description TimeseriesStatistic()Initializes the statistic.TimeseriesStatistic(T 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.TgetData()Returns the currently stored profile.StringgetStatisticDescription()Returns a description for this statistic, i.e., database ID.StringglobalInfo()Returns a string describing the object.voidsetData(T 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
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
DATABASE_ID
public static final String DATABASE_ID
- See Also:
- Constant Field Values
-
NUMBER_OF_POINTS
public static final String NUMBER_OF_POINTS
- See Also:
- Constant Field Values
-
MIN_VALUE
public static final String MIN_VALUE
- See Also:
- Constant Field Values
-
MAX_VALUE
public static final String MAX_VALUE
- See Also:
- Constant Field Values
-
MEAN_VALUE
public static final String MEAN_VALUE
- See Also:
- Constant Field Values
-
STDEV_VALUE
public static final String STDEV_VALUE
- See Also:
- Constant Field Values
-
MEDIAN_VALUE
public static final String MEDIAN_VALUE
- 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
-
-
Constructor Detail
-
TimeseriesStatistic
public TimeseriesStatistic()
Initializes the statistic.
-
TimeseriesStatistic
public TimeseriesStatistic(T data)
Initializes the statistic.- Parameters:
data- the profile to generate the statistics for
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin classAbstractDataStatistic<T extends Timeseries>- Returns:
- a description suitable for displaying in the gui
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUpin interfaceCleanUpHandler- Overrides:
cleanUpin classAbstractDataStatistic<T extends Timeseries>
-
setData
public void setData(T value)
Sets the data to use as basis for the calculations.- Overrides:
setDatain classAbstractDataStatistic<T extends Timeseries>- Parameters:
value- the profile to use, can be null
-
getData
public T getData()
Returns the currently stored profile.- Overrides:
getDatain classAbstractDataStatistic<T extends Timeseries>- Returns:
- the profile, can be null
-
getStatisticDescription
public String getStatisticDescription()
Returns a description for this statistic, i.e., database ID.- Returns:
- the description
-
calculate
protected void calculate()
calculates the statistics.- Overrides:
calculatein classAbstractDataStatistic<T extends Timeseries>- See Also:
AbstractDataStatistic.statisticNames(),AbstractDataStatistic.getStatistic(String),AbstractDataStatistic.m_Names,AbstractDataStatistic.m_Statistics
-
-