Class DoubleExponentialSmoothingForLinearSeries


  • public class DoubleExponentialSmoothingForLinearSeries
    extends java.lang.Object
    • Constructor Detail

      • DoubleExponentialSmoothingForLinearSeries

        public DoubleExponentialSmoothingForLinearSeries()
    • Method Detail

      • fit

        public static DoubleExponentialSmoothingForLinearSeries.Model fit​(double[] data,
                                                                          double alpha,
                                                                          double beta)
        Performs double exponential smoothing for given time series. This method is suitable for fitting series with linear trend.
        Parameters:
        data - An array containing the recorded data of the time series
        alpha - Smoothing factor for data (0 < alpha < 1)
        beta - Smoothing factor for trend (0 < beta < 1)
        Returns:
        Instance of model that can be used to forecast future values
      • main

        public static void main​(java.lang.String[] args)