Class AbstractStandardiseFilter

  • 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.data.filter.Filter<Spectrum>, Serializable, Comparable
    Direct Known Subclasses:
    StandardiseByInterpolation

    public abstract class AbstractStandardiseFilter
    extends adams.data.filter.AbstractFilter<Spectrum>
    Ancestor for filters that standardize by interpolation.
    Version:
    $Revision$
    Author:
    Michael Fowke
    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 
      Modifier and Type Field Description
      protected double m_First
      the first data point.
      protected double m_Last
      the last data point.
      protected double m_Step
      the step.
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void defineOptions()
      Adds options to the internal list of options.
      String firstTipText()
      Returns the tip text for this property.
      double getFirst()
      Returns the start data point
      double getLast()
      Returns the last data point
      double getStep()
      Returns the step
      protected double interp​(double int_point, List<SpectrumPoint> lsp, int poly)  
      protected double L​(double x, List<SpectrumPoint> lsp, int m)  
      String lastTipText()
      Returns the tip text for this property.
      void setFirst​(double value)
      Sets the start data point
      void setLast​(double value)
      Sets the last data point
      void setStep​(double value)
      Sets the step
      String stepTipText()
      Returns the tip text for this property.
      • Methods inherited from class adams.data.filter.AbstractFilter

        checkData, cleanUp, compareTo, destroy, dontUpdateIDTipText, equals, filter, forCommandLine, getDontUpdateID, processData, reset, setDontUpdateID, shallowCopy, shallowCopy
      • Methods inherited from class adams.core.option.AbstractOptionHandler

        cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, 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
    • Field Detail

      • m_First

        protected double m_First
        the first data point.
      • m_Last

        protected double m_Last
        the last data point.
      • m_Step

        protected double m_Step
        the step.
    • Constructor Detail

      • AbstractStandardiseFilter

        public AbstractStandardiseFilter()
    • Method Detail

      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.data.filter.AbstractFilter<Spectrum>
      • setFirst

        public void setFirst​(double value)
        Sets the start data point
        Parameters:
        value - the maximum
      • getFirst

        public double getFirst()
        Returns the start data point
        Returns:
        the minimum
      • firstTipText

        public String firstTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setLast

        public void setLast​(double value)
        Sets the last data point
        Parameters:
        value - the maximum
      • getLast

        public double getLast()
        Returns the last data point
        Returns:
        the maximum
      • lastTipText

        public String lastTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setStep

        public void setStep​(double value)
        Sets the step
        Parameters:
        value - the maximum
      • getStep

        public double getStep()
        Returns the step
        Returns:
        the maximum
      • stepTipText

        public String stepTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • interp

        protected double interp​(double int_point,
                                List<SpectrumPoint> lsp,
                                int poly)