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 String
FIRST_TIMESTAMP
static String
LAST_TIMESTAMP
static String
MAX_DELTA_TIMESTAMP
static String
MEAN_DELTA_TIMESTAMP
static String
MEDIAN_DELTA_TIMESTAMP
static String
MIN_DELTA_TIMESTAMP
static String
NUMBER_OF_POINTS
static String
STDEV_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 void
calculate()
calculates the statistics.void
cleanUp()
Cleans up data structures, frees up memory.AudioAnnotations
getData()
Returns the currently stored trail.String
getStatisticDescription()
Returns a description for this statistic, i.e., trail ID.String
globalInfo()
Returns a string describing the object.void
setData(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:
globalInfo
in 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:
cleanUp
in interfaceadams.core.CleanUpHandler
- Overrides:
cleanUp
in classadams.data.statistics.AbstractDataStatistic<AudioAnnotations>
-
setData
public void setData(AudioAnnotations value)
Sets the data to use as basis for the calculations.- Overrides:
setData
in classadams.data.statistics.AbstractDataStatistic<AudioAnnotations>
- Parameters:
value
- the trail to use, can be null
-
getData
public AudioAnnotations getData()
Returns the currently stored trail.- Overrides:
getData
in 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:
calculate
in classadams.data.statistics.AbstractDataStatistic<AudioAnnotations>
-
-