public abstract class AbstractRForecaster extends AbstractForecaster<java.lang.Double>
IForecaster
with R.Modifier and Type | Field and Description |
---|---|
static int |
MIN_TS_SIZE_DEFAULT |
Constructor and Description |
---|
AbstractRForecaster(ITimeSeries<java.lang.Double> historyTimeseries,
java.lang.String modelFunc,
java.lang.String forecastFunc,
ForecastMethod strategy) |
AbstractRForecaster(ITimeSeries<java.lang.Double> historyTimeseries,
java.lang.String modelFunc,
java.lang.String forecastFunc,
int confidenceLevel,
ForecastMethod strategy) |
Modifier and Type | Method and Description |
---|---|
protected IForecastResult |
createNaNForecast(ITimeSeries<java.lang.Double> timeseries,
int numForecastSteps) |
IForecastResult |
forecast(int numForecastSteps)
Performs a time series forecast for the given number of steps in the future.
|
protected java.lang.String |
forecastOperationOnResult(java.lang.String varNameForecast) |
protected abstract java.lang.String[] |
getForecastFuncParams()
Returns additional parameters to be appended to the call of the R forecast function.
|
protected abstract java.lang.String[] |
getModelFuncParams()
Returns additional parameters to be appended to the call of the R forecast model.
|
protected java.lang.String |
lowerOperationOnResult(java.lang.String varNameForecast) |
static java.lang.Double[] |
removeNullValues(java.util.List<java.lang.Double> allHistory) |
protected boolean |
satisfiesInputTSRequirements(ITimeSeries<java.lang.Double> timeSeries)
Checks whether the requirements for the input TS are met.
|
protected java.lang.String |
upperOperationOnResult(java.lang.String varNameForecast) |
getConfidenceLevel, getTsOriginal, prepareForecastTS, supportsConfidence
public static final int MIN_TS_SIZE_DEFAULT
public AbstractRForecaster(ITimeSeries<java.lang.Double> historyTimeseries, java.lang.String modelFunc, java.lang.String forecastFunc, ForecastMethod strategy)
historyTimeseries
- timeseriesmodelFunc
- modelFunctionforecastFunc
- forecastfunctionstrategy
- FC strategypublic AbstractRForecaster(ITimeSeries<java.lang.Double> historyTimeseries, java.lang.String modelFunc, java.lang.String forecastFunc, int confidenceLevel, ForecastMethod strategy)
historyTimeseries
- timeseriesmodelFunc
- modelFunctionforecastFunc
- forecastfunctionconfidenceLevel
- value of confedenclevelstrategy
- FC strategyprotected IForecastResult createNaNForecast(ITimeSeries<java.lang.Double> timeseries, int numForecastSteps)
public final IForecastResult forecast(int numForecastSteps)
IForecaster
numForecastSteps
- amount of to calculate FC stepsprotected boolean satisfiesInputTSRequirements(ITimeSeries<java.lang.Double> timeSeries)
protected java.lang.String lowerOperationOnResult(java.lang.String varNameForecast)
varNameForecast
- Name FCprotected java.lang.String upperOperationOnResult(java.lang.String varNameForecast)
varNameForecast
- name fcprotected java.lang.String forecastOperationOnResult(java.lang.String varNameForecast)
varNameForecast
- name FCprotected abstract java.lang.String[] getModelFuncParams()
protected abstract java.lang.String[] getForecastFuncParams()
public static java.lang.Double[] removeNullValues(java.util.List<java.lang.Double> allHistory)
allHistory
- List there null values should be deleted in this functionCopyright 2017 Kieker Project, http://kieker-monitoring.net