Class GulloDerivate
- java.lang.Object
-
- ai.libs.jaicore.basic.transform.vector.derivate.ADerivateFilter
-
- ai.libs.jaicore.basic.transform.vector.derivate.GulloDerivate
-
- All Implemented Interfaces:
ITransformation<double[]>,IVectorTransform
public class GulloDerivate extends ADerivateFilter
Calculates the derivative of a timeseries as described first by Gullo et. al (2009). The Gullo derivateT'for a time seriesT = {T(0), T(1), T(2), .., T(n)}is defined asT'(i) = (T(i+1) - T(i-1)) / 2fori = 1 to n-1. When padded,T'(0) = T'(1)andT'(n) = T'(n-1).
-
-
Field Summary
-
Fields inherited from class ai.libs.jaicore.basic.transform.vector.derivate.ADerivateFilter
withBoundaries
-
-
Constructor Summary
Constructors Constructor Description GulloDerivate()GulloDerivate(boolean withBoundaries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double[]derivate(double[] t)Calculates the derivate of a time series.protected double[]derivateWithBoundaries(double[] t)Calcuates the derivates of a time series.-
Methods inherited from class ai.libs.jaicore.basic.transform.vector.derivate.ADerivateFilter
transform
-
-
-
-
Method Detail
-
derivate
protected double[] derivate(double[] t)
Description copied from class:ADerivateFilterCalculates the derivate of a time series.- Specified by:
derivatein classADerivateFilter- Parameters:
t- The time series to calculate the derivate for.- Returns:
- The derivate of the time series.
-
derivateWithBoundaries
protected double[] derivateWithBoundaries(double[] t)
Description copied from class:ADerivateFilterCalcuates the derivates of a time series. In contrast to the normalADerivateFilter.derivate(double[])calculation, this method is guaranteed to return a derivate that has the same length than the original time series. This is accomplished via padding.- Specified by:
derivateWithBoundariesin classADerivateFilter- Parameters:
t- The time series to calculate the derivate for.- Returns:
- The, possibly padded, derivate of the time series.
-
-