Package ai.libs.jaicore.basic.complexity
Class StretchingComplexity
- java.lang.Object
-
- ai.libs.jaicore.basic.complexity.StretchingComplexity
-
- All Implemented Interfaces:
ITimeSeriesComplexity
public class StretchingComplexity extends java.lang.Object implements ITimeSeriesComplexity
Stretching Complexity that calulates the length of a time series when stretched to a straight line. $$ c = sum_{i=1}^n-1 \sqrt{ (t_2 - t_1)^2 + (T_{i+1} - T_i)^2 }$$ where $t_i$ are the timestamps (here $t_i = i$) an $T_i$ are the values of the time series.
-
-
Constructor Summary
Constructors Constructor Description StretchingComplexity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
complexity(double[] t)
-
-
-
Method Detail
-
complexity
public double complexity(double[] t)
- Specified by:
complexity
in interfaceITimeSeriesComplexity
-
-