public class AverageMethodTimeSeries extends TimeSeries<java.lang.Double>
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.math3.stat.descriptive.DescriptiveStatistics |
stats |
key, lag, season
Constructor and Description |
---|
AverageMethodTimeSeries() |
Modifier and Type | Method and Description |
---|---|
protected void |
fit(LimitedQueue<Observation<java.lang.Double>> currentObservations)
Subclasses need to fit their corresponding time series model to the currently available data.
|
protected Prediction<java.lang.Double> |
getPrediction(int h,
java.lang.Object... payload)
Subclasses need to provide an implementation for the prediction of h-steps into the future given the current position
|
protected boolean |
isAvailable(java.lang.Double observation) |
addObservation, findLastAvailableObservation, getLastObservation, getObservationOfLastSeason, predict, resetTo, setKey
protected void fit(LimitedQueue<Observation<java.lang.Double>> currentObservations)
TimeSeries
fit
in class TimeSeries<java.lang.Double>
protected Prediction<java.lang.Double> getPrediction(int h, java.lang.Object... payload)
TimeSeries
getPrediction
in class TimeSeries<java.lang.Double>
h
- the prediction/forecast horizonpayload
- additional information which is available at time of prediction (if there are other additional explanatory variables)protected boolean isAvailable(java.lang.Double observation)
isAvailable
in class TimeSeries<java.lang.Double>