public class DoubleExponentialSmoothing extends AbstractExponentialSmoothing
When smoothing parameters are smaller more weights are added to the observations from distant past - it makes it model more robust.
Equations:
| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleExponentialSmoothing.DoubleExOptimizer |
static class |
DoubleExponentialSmoothing.DoubleExState |
AbstractExponentialSmoothing.PredictionResultTimeSeriesModel.TimestampComparator| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_LEVEL_SMOOTHING |
static double |
DEFAULT_TREND_SMOOTHING |
static double |
MAX_LEVEL_TREND_SMOOTHING |
static double |
MIN_LEVEL_TREND_SMOOTHING |
lastTimestamp, metricContextforecast, forecast, init, initStatistics, lastTimestamp, learn, learn, runStatistics, setConfidenceIntervalpublic static final double DEFAULT_LEVEL_SMOOTHING
public static final double DEFAULT_TREND_SMOOTHING
public static final double MIN_LEVEL_TREND_SMOOTHING
public static final double MAX_LEVEL_TREND_SMOOTHING
public static DoubleExponentialSmoothing createDefault()
public static DoubleExponentialSmoothing createWithMetric(MetricContext metricContext)
public static DoubleExponentialSmoothing createWithSmoothingParams(double levelSmoothing, double trendSmoothing)
public static DoubleExponentialSmoothing createCustom(double levelSmoothing, double trendSmoothing, MetricContext metricContext)
public String name()
public int numberOfParams()
public int minimumInitSize()
protected DoubleExponentialSmoothing.DoubleExState initState(List<DataPoint> initData)
initState in class AbstractExponentialSmoothingprotected DoubleExponentialSmoothing.DoubleExState state()
state in class AbstractExponentialSmoothingprotected void updateState(DataPoint dataPoint)
updateState in class AbstractExponentialSmoothingprotected AbstractExponentialSmoothing.PredictionResult calculatePrediction(int nAhead, Long learnTimestamp, Double expected)
calculatePrediction in class AbstractExponentialSmoothingpublic static DoubleExponentialSmoothing.DoubleExOptimizer optimizer()
public static DoubleExponentialSmoothing.DoubleExOptimizer optimizer(MetricContext metricContext)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.