|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ForecastingModel
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 |
getAIC()
Returns the Akaike Information Criteria obtained from applying the current forecasting model to the initial data set to try and predict each data point. |
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. |
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. |
int |
getNumberOfPredictors()
Returns the number of predictors used by the underlying model. |
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. |
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 |
---|
void init(DataSet dataSet)
dataSet
- a data set of observations that can be used to initialize
the forecasting parameters of the forecasting model.double getAIC()
double getBias()
double getMAD()
double getMAPE()
double getMSE()
double getSAE()
int getNumberOfPredictors()
double forecast(DataPoint dataPoint)
dataPoint
- the data point for which a forecast value (for the
dependent variable) is required.
DataSet forecast(DataSet dataSet)
dataSet
- the set of data points for which forecast values (for
the dependent variable) are required.
String getForecastType()
String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |