Class ForwardDifferenceDerivate

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

    public class ForwardDifferenceDerivate
    extends ADerivateFilter
    Filter that calculate the Forward Difference derivate. The Forward Difference derivate T' for a time series T = {T(0), T(1), T(2), .., T(n)} is defined as T'(i) = T(i+1) - T(i) for i = 0 to n-1. When padded, T'(n) = T'(n-1).
    • Constructor Detail

      • ForwardDifferenceDerivate

        public ForwardDifferenceDerivate()
      • ForwardDifferenceDerivate

        public ForwardDifferenceDerivate​(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.