public class SimpleExponentialSmoothing 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 |
SimpleExponentialSmoothing.SimpleExOptimizer |
static class |
SimpleExponentialSmoothing.State |
AbstractExponentialSmoothing.PredictionResultTimeSeriesModel.TimestampComparator| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_LEVEL_SMOOTHING |
static double |
MAX_LEVEL_SMOOTHING |
static double |
MIN_LEVEL_SMOOTHING |
lastTimestamp, metricContext| Modifier and Type | Method and Description |
|---|---|
protected AbstractExponentialSmoothing.PredictionResult |
calculatePrediction(int nAhead,
Long learnTimestamp,
Double expected) |
static SimpleExponentialSmoothing |
createCustom(double levelSmoothing,
MetricContext metricContext) |
static SimpleExponentialSmoothing |
createDefault() |
static SimpleExponentialSmoothing |
createWithSmoothingParam(double levelSmoothing) |
protected SimpleExponentialSmoothing.State |
initState(List<DataPoint> initData) |
int |
minimumInitSize() |
String |
name() |
int |
numberOfParams() |
static SimpleExponentialSmoothing.SimpleExOptimizer |
optimizer() |
static SimpleExponentialSmoothing.SimpleExOptimizer |
optimizer(MetricContext metricContext) |
protected SimpleExponentialSmoothing.State |
state() |
String |
toString() |
protected void |
updateState(DataPoint dataPoint) |
forecast, forecast, init, initStatistics, lastTimestamp, learn, learn, runStatistics, setConfidenceIntervalpublic static final double DEFAULT_LEVEL_SMOOTHING
public static final double MIN_LEVEL_SMOOTHING
public static final double MAX_LEVEL_SMOOTHING
public static SimpleExponentialSmoothing createDefault()
public static SimpleExponentialSmoothing createWithSmoothingParam(double levelSmoothing)
public static SimpleExponentialSmoothing createCustom(double levelSmoothing, MetricContext metricContext)
public String name()
public int numberOfParams()
public int minimumInitSize()
protected SimpleExponentialSmoothing.State initState(List<DataPoint> initData)
initState in class AbstractExponentialSmoothingprotected SimpleExponentialSmoothing.State 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 SimpleExponentialSmoothing.SimpleExOptimizer optimizer()
public static SimpleExponentialSmoothing.SimpleExOptimizer optimizer(MetricContext metricContext)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.