Class DoubleExponentialSmoothingForLinearSeries

java.lang.Object
eu.hansolo.tilesfx.tools.DoubleExponentialSmoothingForLinearSeries

public class DoubleExponentialSmoothingForLinearSeries extends Object
  • Constructor Details

    • DoubleExponentialSmoothingForLinearSeries

      public DoubleExponentialSmoothingForLinearSeries()
  • Method Details

    • 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(String[] args)