Class BackwardDifferenceDerivate

  • All Implemented Interfaces:
    ITransformation<double[]>, IVectorTransform

    public class BackwardDifferenceDerivate
    extends ADerivateFilter
    Filter that calculate the Backward Difference derivate. The Backward Difference derivate 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).
    • Constructor Detail

      • BackwardDifferenceDerivate

        public BackwardDifferenceDerivate()
      • BackwardDifferenceDerivate

        public BackwardDifferenceDerivate​(boolean withBoundaries)
    • Method Detail

      • derivate

        protected double[] derivate​(double[] t)
        Description copied from class: ADerivateFilter
        Calculates the derivate of a time series.
        Specified by:
        derivate in class ADerivateFilter
        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: ADerivateFilter
        Calcuates the derivates of a time series. In contrast to the normal ADerivateFilter.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:
        derivateWithBoundaries in class ADerivateFilter
        Parameters:
        t - The time series to calculate the derivate for.
        Returns:
        The, possibly padded, derivate of the time series.