Class RangeBased

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, Serializable

    public class RangeBased
    extends AbstractDetrend
    Performs the correction using slopes/intercepts calculated for the defined ranges.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    -range <adams.core.base.BaseInterval> [-range ...] (property: ranges)
        The ranges of wave numbers to use for calculating the intercept/slope corrections.
        default: (-Infinity;+Infinity)
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Ranges

        protected BaseInterval[] m_Ranges
        the ranges to calculate the intercept/slope for.
    • Constructor Detail

      • RangeBased

        public RangeBased()
    • Method Detail

      • setRanges

        public void setRanges​(BaseInterval[] value)
        Sets the wave number ranges.
        value - the ranges
      • getRanges

        public BaseInterval[] getRanges()
        Returns the wave number ranges.
        the ranges
      • rangesTipText

        public String rangesTipText()
        Returns the tip text for this property.
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • correct

        public double[] correct​(double[] waveno,
                                double[] data)
        Corrects the spectrum.
        Specified by:
        correct in class AbstractDetrend
        waveno - the wave numbers
        data - the spectrum to process
        the processed spectrum