Class ADerivateFilter
- java.lang.Object
-
- ai.libs.jaicore.basic.transform.vector.derivate.ADerivateFilter
-
- All Implemented Interfaces:
ITransformation<double[]>,IVectorTransform
- Direct Known Subclasses:
BackwardDifferenceDerivate,ForwardDifferenceDerivate,GulloDerivate,KeoghDerivate
public abstract class ADerivateFilter extends java.lang.Object implements IVectorTransform
Abstract superclass for all derivate filters.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanwithBoundariesFlag that states wheter the filter should add a padding to the derivate assure that is has the same length as the origin time series or not.
-
Constructor Summary
Constructors Constructor Description ADerivateFilter()ADerivateFilter(boolean withBoundaries)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract double[]derivate(double[] t)Calculates the derivate of a time series.protected abstract double[]derivateWithBoundaries(double[] t)Calcuates the derivates of a time series.double[]transform(double[] input)
-
-
-
Method Detail
-
derivate
protected abstract double[] derivate(double[] t)
Calculates the derivate of a time series.- Parameters:
t- The time series to calculate the derivate for.- Returns:
- The derivate of the time series.
-
derivateWithBoundaries
protected abstract double[] derivateWithBoundaries(double[] t)
Calcuates the derivates of a time series. In contrast to the normalderivate(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.- Parameters:
t- The time series to calculate the derivate for.- Returns:
- The, possibly padded, derivate of the time series.
-
transform
public double[] transform(double[] input)
- Specified by:
transformin interfaceITransformation<double[]>
-
-