Kieker 1.12

kieker.tools.opad.timeseries.forecast.mean
Class MeanForecasterJava

java.lang.Object
  extended by kieker.tools.opad.timeseries.forecast.AbstractForecaster<java.lang.Double>
      extended by kieker.tools.opad.timeseries.forecast.mean.MeanForecasterJava
All Implemented Interfaces:
IForecaster<java.lang.Double>

public class MeanForecasterJava
extends AbstractForecaster<java.lang.Double>

A Java-based time series forecaster which computes a forecast based on the mean value of the historic values.

Since:
1.10
Author:
Andre van Hoorn

Constructor Summary
MeanForecasterJava(ITimeSeries<java.lang.Double> historyTimeseries)
           
 
Method Summary
 IForecastResult forecast(int numForecastSteps)
          Performs a time series forecast for the given number of steps in the future.
static java.lang.Double[] removeNullValues(java.util.List<java.lang.Double> allHistory)
           
protected  boolean supportsConfidence()
           
 
Methods inherited from class kieker.tools.opad.timeseries.forecast.AbstractForecaster
getConfidenceLevel, getTsOriginal, prepareForecastTS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeanForecasterJava

public MeanForecasterJava(ITimeSeries<java.lang.Double> historyTimeseries)
Parameters:
historyTimeseries - TimeSeries
Method Detail

forecast

public IForecastResult forecast(int numForecastSteps)
Description copied from interface: IForecaster
Performs a time series forecast for the given number of steps in the future.

Parameters:
numForecastSteps - number of values the forecaster is going to forecast
Returns:
Forecast Result

removeNullValues

public static java.lang.Double[] removeNullValues(java.util.List<java.lang.Double> allHistory)
Parameters:
allHistory - List there null values should deltet in this function
Returns:
List/Array with no NullValues

supportsConfidence

protected boolean supportsConfidence()
Overrides:
supportsConfidence in class AbstractForecaster<java.lang.Double>

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net