Class CosineTransform

  • All Implemented Interfaces:
    ITransformation<double[]>, IVectorTransform

    public class CosineTransform
    extends java.lang.Object
    implements IVectorTransform
    Calculates the cosine transform of a time series. For this implementation, the definition as given in "Non-isometric transforms in time series classification using DTW" by Tomasz Gorecki and Maciej Luczak (2014) is used. The cosine transform f = {f(k): k = 1 to n} of a time series T = {T(i): i = 1 to n } is defined as f(k) = sum_{i=1}^{n} T(i) * cos[(PI/n)*(i-0.5)*(k-1)].
    • Constructor Summary

      Constructors 
      Constructor Description
      CosineTransform()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double[] transform​(double[] input)  
      • Methods inherited from class java.lang.Object

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

      • CosineTransform

        public CosineTransform()
    • Method Detail

      • transform

        public double[] transform​(double[] input)
        Specified by:
        transform in interface ITransformation<double[]>