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 String
DATABASE_ID
static String
MAX_DELTA_TIMESTAMP
static String
MAX_VALUE
static String
MEAN_DELTA_TIMESTAMP
static String
MEAN_VALUE
static String
MEDIAN_DELTA_TIMESTAMP
static String
MEDIAN_VALUE
static String
MIN_DELTA_TIMESTAMP
static String
MIN_VALUE
static String
NUMBER_OF_POINTS
static String
STDEV_DELTA_TIMESTAMP
static String
STDEV_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 void
calculate()
calculates the statistics.void
cleanUp()
Cleans up data structures, frees up memory.T
getData()
Returns the currently stored profile.String
getStatisticDescription()
Returns a description for this statistic, i.e., database ID.String
globalInfo()
Returns a string describing the object.void
setData(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:
globalInfo
in 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:
cleanUp
in interfaceCleanUpHandler
- Overrides:
cleanUp
in classAbstractDataStatistic<T extends Timeseries>
-
setData
public void setData(T value)
Sets the data to use as basis for the calculations.- Overrides:
setData
in classAbstractDataStatistic<T extends Timeseries>
- Parameters:
value
- the profile to use, can be null
-
getData
public T getData()
Returns the currently stored profile.- Overrides:
getData
in 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:
calculate
in classAbstractDataStatistic<T extends Timeseries>
- See Also:
AbstractDataStatistic.statisticNames()
,AbstractDataStatistic.getStatistic(String)
,AbstractDataStatistic.m_Names
,AbstractDataStatistic.m_Statistics
-
-