Class RangeBased

    • 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.
        Parameters:
        value - the ranges
      • getRanges

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

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

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