Package adams.data.spectrumbaseline
Class LOWESSBased
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.baseline.AbstractBaselineCorrection<T>
-
- adams.data.baseline.AbstractLOWESSBased<Spectrum>
-
- adams.data.spectrumbaseline.LOWESSBased
-
- 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<adams.data.baseline.AbstractBaselineCorrection>
,adams.core.SizeOfHandler
,Serializable
,Comparable
public class LOWESSBased extends adams.data.baseline.AbstractLOWESSBased<Spectrum>
A baseline correction scheme that uses LOWESS smoothing to determine the baseline.
For more information see:
WikiPedia. Local Regression. URL http://en.wikipedia.org/wiki/Lowess.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-window-size <int> (property: windowSize) The window size to use, must be at least 1. default: 20 minimum: 1
- Version:
- $Revision: 2242 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LOWESSBased()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected adams.data.filter.AbstractLOWESS
getFilter()
Returns a new instance of a LOWESS filter.protected adams.data.container.DataPoint
subtract(adams.data.container.DataPoint old, adams.data.container.DataPoint baseline)
Subtracts the baseline from the old data point and creates a new data point.-
Methods inherited from class adams.data.baseline.AbstractLOWESSBased
defineOptions, getTechnicalInformation, getWindowSize, globalInfo, initialize, processData, setWindowSize, windowSizeTipText
-
Methods inherited from class adams.data.baseline.AbstractBaselineCorrection
checkData, cleanUp, compareTo, correct, doCorrect, equals, forCommandLine, reset, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
getFilter
protected adams.data.filter.AbstractLOWESS getFilter()
Returns a new instance of a LOWESS filter.- Specified by:
getFilter
in classadams.data.baseline.AbstractLOWESSBased<Spectrum>
- Returns:
- the filter
-
subtract
protected adams.data.container.DataPoint subtract(adams.data.container.DataPoint old, adams.data.container.DataPoint baseline)
Subtracts the baseline from the old data point and creates a new data point.- Specified by:
subtract
in classadams.data.baseline.AbstractLOWESSBased<Spectrum>
- Parameters:
old
- the old data point to subtract the baseline frombaseline
- the baseline value to subtract- Returns:
- the new corrected data point
-
-