public class BackwardDifferenceDerivate extends ADerivateFilter
t' for a time series
T = {T(1), T(2), .., T(n)} is defined as T'(i) = T(i) - T(i-1)
for i = 1 to n. When padded, T'(0) = T'(1).withBoundaries| Constructor and Description |
|---|
BackwardDifferenceDerivate() |
BackwardDifferenceDerivate(boolean withBoundaries) |
| Modifier and Type | Method and 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.
|
fit, fit, fit, fitTransform, fitTransform, fitTransform, transform, transform, transformpublic BackwardDifferenceDerivate()
public BackwardDifferenceDerivate(boolean withBoundaries)
protected double[] derivate(double[] t)
ADerivateFilterderivate in class ADerivateFiltert - The time series to calculate the derivate for.protected double[] derivateWithBoundaries(double[] t)
ADerivateFilterderivate calculation, this method is guaranteed to return a derivate
that has the same length than the original time series. This is accomplished
via padding.derivateWithBoundaries in class ADerivateFiltert - The time series to calculate the derivate for.