Class AbstractSAX<T extends DataContainer>

    • Field Detail

      • m_NumWindows

        protected int m_NumWindows
        the number of windows to use for PAA.
      • m_NumBins

        protected int m_NumBins
        the number of breakpoints to use (for the Gaussian).
      • m_OutputLabels

        protected boolean m_OutputLabels
        whether to output labels or the actual distances.
      • m_BreakPoints

        protected double[] m_BreakPoints
        the calculated breakpoints.
      • m_DistMatrix

        protected double[][] m_DistMatrix
        the matrix to use for the distance calculations.
    • Constructor Detail

      • AbstractSAX

        public AbstractSAX()
    • 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
      • setNumWindows

        public void setNumWindows​(int value)
        Sets the number of windows to use for PAA.
        Parameters:
        value - the number
      • getNumWindows

        public int getNumWindows()
        Returns the number of windows to use for PAA.
        Returns:
        the number
      • numWindowsTipText

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

        public void setNumBins​(int value)
        Sets the number of bins to use for the Gaussian.
        Parameters:
        value - the number
      • getNumBins

        public int getNumBins()
        Returns the number of bins to use for the Gaussian.
        Returns:
        the number
      • numBinsTipText

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

        public void setOutputLabels​(boolean value)
        Sets whether to output labels or distances.
        Parameters:
        value - true if to output labels
      • getOutputLabels

        public boolean getOutputLabels()
        Returns whether to output labels or distances.
        Returns:
        true if to output labels
      • outputLabelsTipText

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

        protected abstract double getMeanDeltaX​(T data)
        Computes the mean difference between data points on the X axis.
        Parameters:
        data - the data to use for the calculation
        Returns:
        the mean
      • getX

        protected abstract double getX​(DataPoint point)
        Obtains the X value from the given data point.
        Parameters:
        point - the data point to extract the X value from
        Returns:
        the X value
      • getY

        protected abstract double getY​(DataPoint point)
        Obtains the Y value from the given data point.
        Parameters:
        point - the data point to extract the Y value from
        Returns:
        the Y value
      • newDataPoint

        protected abstract DataPoint newDataPoint​(double x,
                                                  double y)
        Creates a new data point from the X and Y values.
        Parameters:
        x - the raw X value
        y - the raw Y value
        Returns:
        the data point
      • 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