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.Optimizer |
static class |
SimpleExponentialSmoothing.State |
TimeSeriesModel.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 double |
calculatePrediction(long nAhead,
Long learnTimestamp) |
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.Optimizer |
optimizer() |
static SimpleExponentialSmoothing.Optimizer |
optimizer(MetricContext metricContext) |
protected SimpleExponentialSmoothing.State |
state() |
String |
toString() |
protected void |
updateState(DataPoint dataPoint) |
forecast, forecast, init, initStatistics, lastTimestamp, learn, learn, runStatisticspublic 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 double calculatePrediction(long nAhead,
Long learnTimestamp)
calculatePrediction in class AbstractExponentialSmoothingpublic static SimpleExponentialSmoothing.Optimizer optimizer()
public static SimpleExponentialSmoothing.Optimizer optimizer(MetricContext metricContext)
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.