Class 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 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-1)) / 2 for i = 1 to n-1. When padded, T'(0) = T'(1) and T'(n) = T'(n-1).
    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GulloDerivate

        public GulloDerivate()
      • GulloDerivate

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