Documentation of 'net.sourceforge.openforecast.models.AbstractForecastingModel' Java class
AbstractForecastingModel
net.sourceforge.openforecast.models

Class AbstractForecastingModel

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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.
      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 Absolute Errors (SAE) obtained by applying the current forecasting model to the initial data set.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getAIC

        public 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. The result is an indication of the accuracy of the model when applied to your initial data set - the smaller the Akaike Information Criteria (AIC), the more accurate the model.
        Specified by:
        getAIC in interface ForecastingModel
        Returns:
        the Akaike Information Criteria (AIC) when the current model was applied to the initial data set.
        Throws:
        ModelNotInitializedException - if getAIC is called before the model has been initialized with a call to init.
        Since:
        0.5
      • getBias

        public 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. The result is an indication of the accuracy of the model when applied to your initial data set - the smaller the bias, the more accurate the model.
        Specified by:
        getBias in interface ForecastingModel
        Returns:
        the bias - mean of the errors - when the current model was applied to the initial data set.
        Throws:
        ModelNotInitializedException - if getBias is called before the model has been initialized with a call to init.
      • getMAD

        public 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. The result is an indication of the accuracy of the model when applied to your initial data set - the smaller the Mean Absolute Deviation (MAD), the more accurate the model.
        Specified by:
        getMAD in interface ForecastingModel
        Returns:
        the mean absolute deviation (MAD) when the current model was applied to the initial data set.
        Throws:
        ModelNotInitializedException - if getMAD is called before the model has been initialized with a call to init.
      • getMAPE

        public 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. The result is an indication of the accuracy of the model when applied to the initial data set - the smaller the Mean Absolute Percentage Error (MAPE), the more accurate the model.
        Specified by:
        getMAPE in interface ForecastingModel
        Returns:
        the mean absolute percentage error (MAPE) when the current model was applied to the initial data set.
        Throws:
        ModelNotInitializedException - if getMAPE is called before the model has been initialized with a call to init.
      • getMSE

        public 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. The result is an indication of the accuracy of the model when applied to your initial data set - the smaller the Mean Square of the Errors, the more accurate the model.
        Specified by:
        getMSE in interface ForecastingModel
        Returns:
        the mean square of the errors (MSE) when the current model was applied to the initial data set.
        Throws:
        ModelNotInitializedException - if getMSE is called before the model has been initialized with a call to init.
      • getSAE

        public double getSAE()
        Returns the Sum of Absolute Errors (SAE) obtained by applying the current forecasting model to the initial data set. Initialized following a call to init.
        Specified by:
        getSAE in interface ForecastingModel
        Returns:
        the sum of absolute errors (SAE) obtained by applying this forecasting model to the initial data set.
        Throws:
        ModelNotInitializedException - if getSAE is called before the model has been initialized with a call to init.
      • forecast

        public DataSet forecast(DataSet dataSet)
        Using the current model parameters (initialized in init), apply the forecast model to the given data set. Each data point in the data set must have valid values for the independent variables. Upon return, the value of the dependent variable will be updated with the forecast values computed. This method is provided as a convenience method, and iterates through the data set invoking forecast(DataPoint) to do the actual forecast for each data point. In general, it is not necessary to override this method. However, if a subclass can provide a more efficient approach then it is recommended that the subclass provide its own implementation.
        Specified by:
        forecast in interface ForecastingModel
        Parameters:
        dataSet - the set of data points for which forecast values (for the dependent variable) are required.
        Returns:
        the same data set passed in but with the dependent values updated to contain the new forecast values.
        Throws:
        ModelNotInitializedException - if getMSE is called before the model has been initialized with a call to init.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.