Package adams.data.audioannotations
Class AudioAnnotationsStatistic
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.data.statistics.AbstractDataStatistic<AudioAnnotations>
-
- adams.data.audioannotations.AudioAnnotationsStatistic
-
- All Implemented Interfaces:
adams.core.CleanUpHandler,adams.core.logging.LoggingSupporter,adams.core.SizeOfHandler,adams.data.spreadsheet.SpreadSheetSupporter,adams.data.statistics.InformativeStatistic,Serializable
public class AudioAnnotationsStatistic extends adams.data.statistics.AbstractDataStatistic<AudioAnnotations>
Statistical information specific to a audio annotations.- 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 StringMEAN_DELTA_TIMESTAMPstatic StringMEDIAN_DELTA_TIMESTAMPstatic StringMIN_DELTA_TIMESTAMPstatic StringNUMBER_OF_POINTSstatic StringSTDEV_DELTA_TIMESTAMP
-
Constructor Summary
Constructors Constructor Description AudioAnnotationsStatistic()Initializes the statistic.AudioAnnotationsStatistic(AudioAnnotations 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.AudioAnnotationsgetData()Returns the currently stored trail.StringgetStatisticDescription()Returns a description for this statistic, i.e., trail ID.StringglobalInfo()Returns a string describing the object.voidsetData(AudioAnnotations 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
-
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
-
AudioAnnotationsStatistic
public AudioAnnotationsStatistic()
Initializes the statistic.
-
AudioAnnotationsStatistic
public AudioAnnotationsStatistic(AudioAnnotations 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<AudioAnnotations>- 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<AudioAnnotations>
-
setData
public void setData(AudioAnnotations value)
Sets the data to use as basis for the calculations.- Overrides:
setDatain classadams.data.statistics.AbstractDataStatistic<AudioAnnotations>- Parameters:
value- the trail to use, can be null
-
getData
public AudioAnnotations getData()
Returns the currently stored trail.- Overrides:
getDatain classadams.data.statistics.AbstractDataStatistic<AudioAnnotations>- 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<AudioAnnotations>
-
-