Class SAX

  • All Implemented Interfaces:
    IFilter

    public class SAX
    extends java.lang.Object
    implements IFilter
    • Constructor Summary

      Constructors 
      Constructor Description
      SAX​(double[] alphabet, int wordLength)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fit​(double[] input)
      The function only fits a single instance of the dataset
      void fit​(double[][] input)  
      void fit​(TimeSeriesDataset2 input)
      the function computes the needed information for the transform function.
      double[] fitTransform​(double[] input)
      the function fit and transforms a single instance
      double[][] fitTransform​(double[][] input)  
      TimeSeriesDataset2 fitTransform​(TimeSeriesDataset2 input)
      a utility function to avoid the added effort of calling the fit and transform function separate
      double[] transform​(double[] input)
      This function transforms only a single instance.
      double[][] transform​(double[][] input)  
      TimeSeriesDataset2 transform​(TimeSeriesDataset2 input)
      represents a function working on a dataset by transforming the dataset itself.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SAX

        public SAX​(double[] alphabet,
                   int wordLength)
    • Method Detail

      • transform

        public TimeSeriesDataset2 transform​(TimeSeriesDataset2 input)
        Description copied from interface: IFilter
        represents a function working on a dataset by transforming the dataset itself.
        Specified by:
        transform in interface IFilter
        Parameters:
        input - the data set that is to transform
        Returns:
        the transformt dataset
      • fit

        public void fit​(TimeSeriesDataset2 input)
        Description copied from interface: IFilter
        the function computes the needed information for the transform function.
        Specified by:
        fit in interface IFilter
        Parameters:
        input - the dataset that is to transform
      • fitTransform

        public TimeSeriesDataset2 fitTransform​(TimeSeriesDataset2 input)
        Description copied from interface: IFilter
        a utility function to avoid the added effort of calling the fit and transform function separate
        Specified by:
        fitTransform in interface IFilter
        Parameters:
        input - the dataset that is to be transfromed
        Returns:
        the transformed dataset
      • transform

        public double[] transform​(double[] input)
        Description copied from interface: IFilter
        This function transforms only a single instance.
        Specified by:
        transform in interface IFilter
        Parameters:
        input - the to transform instance
        Returns:
        the transformed instance
      • fit

        public void fit​(double[] input)
        Description copied from interface: IFilter
        The function only fits a single instance of the dataset
        Specified by:
        fit in interface IFilter
        Parameters:
        input - The to fit instance
      • fitTransform

        public double[] fitTransform​(double[] input)
        Description copied from interface: IFilter
        the function fit and transforms a single instance
        Specified by:
        fitTransform in interface IFilter
        Parameters:
        input - the to fit and transform instance
        Returns:
        the transformed instance
      • transform

        public double[][] transform​(double[][] input)
        Specified by:
        transform in interface IFilter
      • fit

        public void fit​(double[][] input)
        Specified by:
        fit in interface IFilter
      • fitTransform

        public double[][] fitTransform​(double[][] input)
        Specified by:
        fitTransform in interface IFilter