public static void main(String[] args) {
        //double[] testData = {17.55, 21.86, 23.89, 26.93, 26.89, 28.83, 30.08, 30.95, 30.19, 31.58, 32.58, 33.48, 39.02, 41.39, 41.60};

        double[] testData = { 128.0, 135.0, 131.0, 205.0, 173.0, 184.0 };

        Model model = DoubleExponentialSmoothingForLinearSeries.fit(testData, 0.8, 0.2);

        System.out.println("Input values: " + Arrays.toString(testData));
        System.out.println("Smoothed values: " + Arrays.toString(model.getSmoothedData()));
        System.out.println("Trend: " + Arrays.toString(model.getTrend()));
        System.out.println("Level: " + Arrays.toString(model.getLevel()));
        System.out.println("Sum of squared error: " + model.getSSE());
        System.out.println("Forecast: " + Arrays.toString(model.forecast(3)));
    }
Performs double exponential smoothing for given time series.
This method is suitable for fitting series with linear trend.

@param data  An array containing the recorded data of the time series
@param alpha Smoothing factor for data (0 &lt; alpha &lt; 1)
@param beta  Smoothing factor for trend (0 &lt; beta &lt; 1)

@return Instance of model that can be used to forecast future values
src/main/java/eu/hansolo/tilesfx/tools/DoubleExponentialSmoothingForLinearSeries.java