public class HoltWintersModel extends MovAvgModel
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
HoltWintersModel.HoltWintersModelBuilder |
static class |
HoltWintersModel.HoltWintersModelParser |
static class |
HoltWintersModel.SeasonalityType |
MovAvgModel.AbstractModelParser| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static ParseField |
NAME_FIELD |
static MovAvgModelStreams.Stream |
STREAM |
| コンストラクタと説明 |
|---|
HoltWintersModel(double alpha,
double beta,
double gamma,
int period,
HoltWintersModel.SeasonalityType seasonalityType,
boolean pad) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canBeMinimized()
Returns if the model can be cost minimized.
|
MovAvgModel |
clone()
Clone the model, returning an exact copy
|
protected <T extends Number> |
doPredict(Collection<T> values,
int numPredictions)
Predicts the next `n` values in the series, using the smoothing model to generate new values.
|
boolean |
hasValue(int valuesAvailable)
Checks to see this model can produce a new value, without actually running the algo.
|
boolean |
minimizeByDefault()
Should this model be fit to the data via a cost minimizing algorithm by default?
|
MovAvgModel |
neighboringModel()
Generates a "neighboring" model, where one of the tunable parameters has been
randomly mutated within the allowed range.
|
<T extends Number> |
next(Collection<T> values)
Returns the next value in the series, according to the underlying smoothing model
|
<T extends Number> |
next(Collection<T> values,
int numForecasts)
Calculate a doubly exponential weighted moving average
|
void |
writeTo(StreamOutput out)
Write the model to the output stream
|
emptyPredictions, predictprotected static final ParseField NAME_FIELD
public static final MovAvgModelStreams.Stream STREAM
public HoltWintersModel(double alpha,
double beta,
double gamma,
int period,
HoltWintersModel.SeasonalityType seasonalityType,
boolean pad)
public boolean minimizeByDefault()
MovAvgModelminimizeByDefault クラス内 MovAvgModelpublic boolean canBeMinimized()
MovAvgModelcanBeMinimized クラス内 MovAvgModelpublic MovAvgModel neighboringModel()
MovAvgModelneighboringModel クラス内 MovAvgModelpublic MovAvgModel clone()
MovAvgModelclone クラス内 MovAvgModelpublic boolean hasValue(int valuesAvailable)
MovAvgModelhasValue クラス内 MovAvgModelvaluesAvailable - Number of values in the current window of valuesprotected <T extends Number> double[] doPredict(Collection<T> values, int numPredictions)
doPredict クラス内 MovAvgModelT - Type of numericvalues - Collection of numerics to movingAvg, usually windowednumPredictions - Number of newly generated predictions to returnpublic <T extends Number> double next(Collection<T> values)
MovAvgModelnext クラス内 MovAvgModelT - Type of numericvalues - Collection of numerics to movingAvg, usually windowedpublic <T extends Number> double[] next(Collection<T> values, int numForecasts)
T - Type T extending Numbervalues - Collection of values to calculate avg fornumForecasts - number of forecasts into the future to returnpublic void writeTo(StreamOutput out) throws IOException
MovAvgModelwriteTo クラス内 MovAvgModelout - Output streamIOExceptionCopyright © 2009–2016. All rights reserved.