Package adams.data.smoothing
Class AbstractLOWESSBased<T extends DataContainer>
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.smoothing.AbstractSmoother<T>
-
- adams.data.smoothing.AbstractLOWESSBased<T>
-
- Type Parameters:
T
- the type of data to smooth
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<AbstractSmoother>
,SizeOfHandler
,TechnicalInformationHandler
,Serializable
,Comparable
- Direct Known Subclasses:
TimeseriesLOWESSBased
public abstract class AbstractLOWESSBased<T extends DataContainer> extends AbstractSmoother<T> implements TechnicalInformationHandler
Abstract ancestor for LOWESS-based smoothers.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class adams.data.smoothing.AbstractSmoother
AbstractSmoother.SmootherJob<T extends DataContainer>
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractLOWESS
m_LOWESS
the LOWESS filter in use.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractLOWESSBased()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected abstract AbstractLOWESS
getDefault()
Returns the default LOWESS filter.TechnicalInformation
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.int
getWindowSize()
Returns the window size.String
globalInfo()
Returns a string describing the object.protected void
initialize()
Initializes the members.protected T
processData(T data)
Performs the actual smoothing.void
setWindowSize(int value)
Sets the window size.String
windowSizeTipText()
Returns the tip text for this property.-
Methods inherited from class adams.data.smoothing.AbstractSmoother
checkData, cleanUp, compareTo, destroy, equals, forCommandLine, forName, getSmoothers, reset, shallowCopy, shallowCopy, smooth
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_LOWESS
protected AbstractLOWESS m_LOWESS
the LOWESS filter in use.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getDefault
protected abstract AbstractLOWESS getDefault()
Returns the default LOWESS filter.- Returns:
- the default filter
-
getTechnicalInformation
public TechnicalInformation getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- Specified by:
getTechnicalInformation
in interfaceTechnicalInformationHandler
- Returns:
- the technical information about this class
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractOptionHandler
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
setWindowSize
public void setWindowSize(int value)
Sets the window size.- Parameters:
value
- the window size
-
getWindowSize
public int getWindowSize()
Returns the window size.- Returns:
- the window size
-
windowSizeTipText
public String windowSizeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
processData
protected T processData(T data)
Performs the actual smoothing.- Specified by:
processData
in classAbstractSmoother<T extends DataContainer>
- Parameters:
data
- the to smooth- Returns:
- the smoothed data
-
-