Class ADerivateFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean withBoundaries
      Flag 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.
    • 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)  
      • Methods inherited from class java.lang.Object

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

      • withBoundaries

        protected boolean withBoundaries
        Flag 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 Detail

      • ADerivateFilter

        public ADerivateFilter​(boolean withBoundaries)
      • ADerivateFilter

        public ADerivateFilter()
    • 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 normal 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.
        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:
        transform in interface ITransformation<double[]>