|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines a consistent interface that must be implemented by all Forecasting Models. Note that any forecasting model should first be initialized by calling init. Once init has been called, any of the other methods can be expected to return reasonable results.
| Method Summary | |
double |
forecast(DataPoint dataPoint)
Using the current model parameters (initialized in init), apply the forecast model to the given data point. |
DataSet |
forecast(DataSet dataSet)
Using the current model parameters (initialized in init), apply the forecast model to the given data set. |
double |
getBias()
Returns the bias - the arithmetic mean of the errors - obtained from applying the current forecasting model to the initial data set to try and predict each data point. |
java.lang.String |
getForecastType()
Returns a one or two word name of this type of forecasting model. |
double |
getMAD()
Returns the mean absolute deviation obtained from applying the current forecasting model to the initial data set to try and predict each data point. |
double |
getMAPE()
Returns the mean absolute percentage error obtained from applying the current forecasting model to the initial data set to try and predict each data point. |
double |
getMSE()
Returns the mean square of the errors (MSE) obtained from applying the current forecasting model to the initial data set to try and predict each data point. |
double |
getSAE()
Returns the sum of the absolute errors (SAE) obtained from applying the current forecasting model to the initial data set to try and predict each data point. |
void |
init(DataSet dataSet)
Used to initialize the model-specific parameters and customize them to the given data set. |
java.lang.String |
toString()
This should be overridden to provide a textual description of the current forecasting model including, where possible, any derived parameters used. |
| Method Detail |
public void init(DataSet dataSet)
dataSet - a data set of observations that can be used to initialize
the forecasting parameters of the forecasting model.public double getBias()
public double getMAD()
public double getMAPE()
public double getMSE()
public double getSAE()
public double forecast(DataPoint dataPoint)
dataPoint - the data point for which a forecast value (for the
dependent variable) is required.
public DataSet forecast(DataSet dataSet)
dataSet - the set of data points for which forecast values (for
the dependent variable) are required.
public java.lang.String getForecastType()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||