Class CollapseX
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.threewaydatamerge.AbstractThreeWayDataMerge
-
- adams.flow.transformer.threewaydatamerge.CollapseX
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,Serializable
public class CollapseX extends AbstractThreeWayDataMerge
Calculates the mean/median/stdev data across the X layers. This only works if the data containers share the same Y/Z values.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollapseX.StatisticTypethe statistic to calculate from the data values.
-
Field Summary
Fields Modifier and Type Field Description protected CollapseX.StatisticTypem_Statisticthe type of statistic to calculate.
-
Constructor Summary
Constructors Constructor Description CollapseX()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected ThreeWayDatadoMerge(ThreeWayData[] data)Merges the data containers into a single one.CollapseX.StatisticTypegetStatistic()Returns the type of statistic to calculate.StringglobalInfo()Returns a string describing the object.voidsetStatistic(CollapseX.StatisticType value)Sets the type of statistic to calculate.StringstatisticTipText()Returns the tip text for this property.-
Methods inherited from class adams.flow.transformer.threewaydatamerge.AbstractThreeWayDataMerge
check, merge
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Statistic
protected CollapseX.StatisticType m_Statistic
the type of statistic to calculate.
-
-
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 classadams.core.option.AbstractOptionHandler
-
setStatistic
public void setStatistic(CollapseX.StatisticType value)
Sets the type of statistic to calculate.- Parameters:
value- the type
-
getStatistic
public CollapseX.StatisticType getStatistic()
Returns the type of statistic to calculate.- Returns:
- the type
-
statisticTipText
public String statisticTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doMerge
protected ThreeWayData doMerge(ThreeWayData[] data)
Merges the data containers into a single one.- Specified by:
doMergein classAbstractThreeWayDataMerge- Parameters:
data- the data to merge- Returns:
- the merged container
-
-