Class AbstractSimpleSavitzkyGolay<T extends DataContainer>

    • Field Detail

      • m_WindowSize

        protected int m_WindowSize
        window size.
    • Constructor Detail

      • AbstractSimpleSavitzkyGolay

        public AbstractSimpleSavitzkyGolay()
    • Method Detail

      • getTechnicalInformation

        public TechnicalInformation getTechnicalInformation()
        Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
        Specified by:
        getTechnicalInformation in interface TechnicalInformationHandler
        Returns:
        the technical information about this class
      • setWindowSize

        public void setWindowSize​(int value)
        Sets the maximum size of the window to optimize (odd, positive number).
        Parameters:
        value - the size
      • getWindowSize

        public int getWindowSize()
        Returns the size of the window.
        Returns:
        the size
      • windowSizeTipText

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

        protected abstract double getValue​(DataPoint point)
        Returns the Y-value of the point.
        Parameters:
        point - the DataPoint to get the Y-value from
        Returns:
        the Y-value
      • newDataPoint

        protected abstract DataPoint newDataPoint​(DataPoint old,
                                                  double y)
        Creates a new DataPoint based on the old one and the new Y-value.
        Parameters:
        old - the old DataPoint
        y - the new Y-value
        Returns:
        the new DataPoint
      • processData

        protected T processData​(T data)
        Performs the actual filtering.
        Specified by:
        processData in class AbstractFilter<T extends DataContainer>
        Parameters:
        data - the data to filter
        Returns:
        the filtered data