Skip navigation links
ai.libs.jaicore.ml.tsc.filter.derivate

Class ForwardDifferenceDerivate

    • 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 derivate 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.