Module eu.hansolo.tilesfx
Package eu.hansolo.tilesfx.tools
Class DoubleExponentialSmoothingForLinearSeries
java.lang.Object
eu.hansolo.tilesfx.tools.DoubleExponentialSmoothingForLinearSeries
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfit(double[] data, double alpha, double beta)
Performs double exponential smoothing for given time series.static void
-
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 seriesalpha
- 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
-