Package adams.data.threewayfeatures
Class Histogram
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.threewayfeatures.AbstractThreeWayDataFeatureGenerator
-
- adams.data.threewayfeatures.Histogram
-
- All Implemented Interfaces:
adams.core.CleanUpHandler,adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.ShallowCopySupporter<AbstractThreeWayDataFeatureGenerator>,adams.core.SizeOfHandler,Serializable,Comparable
public class Histogram extends AbstractThreeWayDataFeatureGenerator
Generates a histogram from the data values.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.data.statistics.ArrayHistogramm_Generatordetermines how to generate the histogram.-
Fields inherited from class adams.data.threewayfeatures.AbstractThreeWayDataFeatureGenerator
m_Converter, m_Fields, m_Notes, m_Prefix
-
-
Constructor Summary
Constructors Constructor Description Histogram()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description adams.data.featureconverter.HeaderDefinitioncreateHeader(ThreeWayData data)Creates the header from template data.voiddefineOptions()Adds options to the internal list of options.List<Object>[]generateRows(ThreeWayData data)Performs the actual feature generation.StringgeneratorTipText()Returns the tip text for this property.adams.data.statistics.ArrayHistogramgetGenerator()Returns the histogram generator.StringglobalInfo()Returns a string describing the object.voidsetGenerator(adams.data.statistics.ArrayHistogram value)Sets the histogram generator.protected Double[]toArray(ThreeWayData data)Returns all the data values as array.-
Methods inherited from class adams.data.threewayfeatures.AbstractThreeWayDataFeatureGenerator
checkData, cleanUp, compareTo, converterTipText, destroy, equals, fieldsTipText, generate, getConverter, getDatasetFormat, getFields, getNotes, getPrefix, getRowFormat, notesTipText, postProcessHeader, postProcessRow, postProcessRows, prefixTipText, reset, setConverter, setFields, setNotes, setPrefix, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classAbstractThreeWayDataFeatureGenerator
-
setGenerator
public void setGenerator(adams.data.statistics.ArrayHistogram value)
Sets the histogram generator.- Parameters:
value- the generator
-
getGenerator
public adams.data.statistics.ArrayHistogram getGenerator()
Returns the histogram generator.- Returns:
- the generator
-
generatorTipText
public String generatorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
toArray
protected Double[] toArray(ThreeWayData data)
Returns all the data values as array.- Parameters:
data- the container to convert- Returns:
- the data values
-
createHeader
public adams.data.featureconverter.HeaderDefinition createHeader(ThreeWayData data)
Creates the header from template data.- Specified by:
createHeaderin classAbstractThreeWayDataFeatureGenerator- Parameters:
data- the data to act as a template- Returns:
- the generated header
-
generateRows
public List<Object>[] generateRows(ThreeWayData data)
Performs the actual feature generation.- Specified by:
generateRowsin classAbstractThreeWayDataFeatureGenerator- Parameters:
data- the data to process- Returns:
- the generated features
-
-