Class LOWESS

  • 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.filter.Filter>, adams.core.SizeOfHandler, adams.core.TechnicalInformationHandler, adams.data.filter.Filter<Spectrum>, Serializable, Comparable

    public class LOWESS
    extends adams.data.filter.AbstractLOWESS<Spectrum>
    A filter that applies LOWESS smoothing.

    For more information see:

    WikiPedia. Local Regression. URL http://en.wikipedia.org/wiki/Lowess.

     @misc{missing_id,
        author = {WikiPedia},
        title = {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
     
    -no-id-update <boolean> (property: dontUpdateID)
        If enabled, suppresses updating the ID of adams.data.id.IDHandler data containers.
        default: false
     
    -window-size <int> (property: windowSize)
        The window size to use, must be at least 20.
        default: 20
        minimum: 1
     
    Version:
    $Revision: 2242 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class adams.data.filter.AbstractFilter

        adams.data.filter.AbstractFilter.FilterJob<T extends adams.data.container.DataContainer>
    • Field Summary

      • Fields inherited from class adams.data.filter.AbstractLOWESS

        m_WindowSize
      • Fields inherited from class adams.data.filter.AbstractFilter

        m_DontUpdateID
      • 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
      LOWESS()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected Point2D convert​(adams.data.container.DataPoint point)
      Returns the X/Y values of the DataPoint as Point2D.
      protected adams.data.container.DataPoint newDataPoint​(Point2D smoothed)
      Creates a new DataPoint from the smoothed one.
      • Methods inherited from class adams.data.filter.AbstractLOWESS

        defineOptions, getTechnicalInformation, getWindowSize, globalInfo, processData, setWindowSize, windowSizeTipText
      • Methods inherited from class adams.data.filter.AbstractFilter

        checkData, cleanUp, compareTo, destroy, dontUpdateIDTipText, equals, filter, forCommandLine, getDontUpdateID, reset, setDontUpdateID, 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
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel, setLoggingLevel
      • Methods inherited from interface adams.core.logging.LoggingSupporter

        getLogger, isLoggingEnabled
      • Methods inherited from interface adams.core.option.OptionHandler

        cleanUpOptions, getOptionManager, toCommandLine
    • Constructor Detail

      • LOWESS

        public LOWESS()
    • Method Detail

      • convert

        protected Point2D convert​(adams.data.container.DataPoint point)
        Returns the X/Y values of the DataPoint as Point2D.
        Specified by:
        convert in class adams.data.filter.AbstractLOWESS<Spectrum>
        Parameters:
        point - the point to get the X/Y values from
        Returns:
        the X/Y values as Point2D
      • newDataPoint

        protected adams.data.container.DataPoint newDataPoint​(Point2D smoothed)
        Creates a new DataPoint from the smoothed one.
        Specified by:
        newDataPoint in class adams.data.filter.AbstractLOWESS<Spectrum>
        Parameters:
        smoothed - the smoothed data point
        Returns:
        the new DataPoint