public class SimpleModel extends MovAvgModel
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleModel.SimpleModelBuilder |
static class |
SimpleModel.SimpleModelParser |
MovAvgModel.AbstractModelParser| Modifier and Type | Field and Description |
|---|---|
protected static ParseField |
NAME_FIELD |
static MovAvgModelStreams.Stream |
STREAM |
| Constructor and Description |
|---|
SimpleModel() |
| Modifier and Type | Method and Description |
|---|---|
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)
Calls to the model-specific implementation which actually generates the predictions
|
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
|
void |
writeTo(StreamOutput out)
Write the model to the output stream
|
emptyPredictions, hasValue, minimizeByDefault, predictprotected static final ParseField NAME_FIELD
public static final MovAvgModelStreams.Stream STREAM
public boolean canBeMinimized()
MovAvgModelcanBeMinimized in class MovAvgModelpublic MovAvgModel neighboringModel()
MovAvgModelneighboringModel in class MovAvgModelpublic MovAvgModel clone()
MovAvgModelclone in class MovAvgModelprotected <T extends Number> double[] doPredict(Collection<T> values, int numPredictions)
MovAvgModeldoPredict in class 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 in class MovAvgModelT - Type of numericvalues - Collection of numerics to movingAvg, usually windowedpublic void writeTo(StreamOutput out) throws IOException
MovAvgModelwriteTo in class MovAvgModelout - Output streamIOExceptionCopyright © 2009–2017. All rights reserved.