Class CosineTransform
- java.lang.Object
-
- ai.libs.jaicore.basic.transform.vector.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 transformf = {f(k): k = 1 to n}of a time seriesT = {T(i): i = 1 to n }is defined asf(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)
-
-
-
Method Detail
-
transform
public double[] transform(double[] input)
- Specified by:
transformin interfaceITransformation<double[]>
-
-