Package adams.data.smoothing
Class TimeseriesSlidingWindow
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.smoothing.AbstractSmoother<T>
-
- adams.data.smoothing.AbstractSlidingWindow<Timeseries>
-
- adams.data.smoothing.TimeseriesSlidingWindow
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<AbstractSmoother>
,SizeOfHandler
,Serializable
,Comparable
public class TimeseriesSlidingWindow extends AbstractSlidingWindow<Timeseries>
Uses a sliding window for determining the median/average inside the window. This measure is then used as new abundance for the time series point in the center of the window. The left and the right ends of the series are filled with dummy points to return a series with the same number of points.
Valid options are:
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-window <int> (property: windowSize) The window size for determining the 'smoothed' abundances. default: 20
-measure <MEDIAN|MEAN> (property: measure) The measure to use for calculating the 'smoothed' abundances. default: MEDIAN
- 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.AbstractSlidingWindow
AbstractSlidingWindow.Measure
-
Nested classes/interfaces inherited from class adams.data.smoothing.AbstractSmoother
AbstractSmoother.SmootherJob<T extends DataContainer>
-
-
Field Summary
-
Fields inherited from class adams.data.smoothing.AbstractSlidingWindow
m_Measure, m_WindowSize
-
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 TimeseriesSlidingWindow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Double
getValue(DataPoint point)
Returns the X-value of the data point.String
globalInfo()
Returns a string describing the object.protected void
updatePoint(DataPoint point, double value)
Updates the X-value of the data point.-
Methods inherited from class adams.data.smoothing.AbstractSlidingWindow
defineOptions, getMeasure, getWindowSize, measureTipText, processData, setMeasure, setWindowSize, windowSizeTipText
-
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, initialize, 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
-
-
-
-
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
-
getValue
protected Double getValue(DataPoint point)
Returns the X-value of the data point.- Specified by:
getValue
in classAbstractSlidingWindow<Timeseries>
- Parameters:
point
- the point to get the X-value from- Returns:
- the X-value
-
updatePoint
protected void updatePoint(DataPoint point, double value)
Updates the X-value of the data point.- Specified by:
updatePoint
in classAbstractSlidingWindow<Timeseries>
- Parameters:
point
- the point to updatevalue
- the value to update the point with
-
-