Class SeasonalNaiveMethodTimeSeries
- java.lang.Object
-
- org.processmining.plugins.stochasticpetrinet.simulator.timeseries.TimeSeries<java.lang.Double>
-
- org.processmining.plugins.stochasticpetrinet.simulator.timeseries.SeasonalNaiveMethodTimeSeries
-
public class SeasonalNaiveMethodTimeSeries extends TimeSeries<java.lang.Double>
A naive seasonal forecast (forecasts the same value as the one observed in the last season)- Author:
- Andreas Rogge-Solti
-
-
Field Summary
-
Fields inherited from class org.processmining.plugins.stochasticpetrinet.simulator.timeseries.TimeSeries
key, lag, season
-
-
Constructor Summary
Constructors Constructor Description SeasonalNaiveMethodTimeSeries()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfit(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 positionprotected booleanisAvailable(java.lang.Double observation)-
Methods inherited from class org.processmining.plugins.stochasticpetrinet.simulator.timeseries.TimeSeries
addObservation, findLastAvailableObservation, getLastObservation, getObservationOfLastSeason, predict, resetTo, setKey
-
-
-
-
Method Detail
-
fit
protected void fit(LimitedQueue<Observation<java.lang.Double>> currentObservations)
Description copied from class:TimeSeriesSubclasses need to fit their corresponding time series model to the currently available data.- Specified by:
fitin classTimeSeries<java.lang.Double>
-
getPrediction
protected Prediction<java.lang.Double> getPrediction(int h, java.lang.Object... payload)
Description copied from class:TimeSeriesSubclasses need to provide an implementation for the prediction of h-steps into the future given the current position- Specified by:
getPredictionin classTimeSeries<java.lang.Double>- Parameters:
h- the prediction/forecast horizonpayload- additional information which is available at time of prediction (if there are other additional explanatory variables)
-
isAvailable
protected boolean isAvailable(java.lang.Double observation)
- Specified by:
isAvailablein classTimeSeries<java.lang.Double>
-
-