Returns forecasts
Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public double[] GetForecast( int nForecast ) |
Visual Basic (Declaration) |
---|
Public Function GetForecast ( _ nForecast As Integer _ ) As Double() |
Visual C++ |
---|
public: array<double>^ GetForecast( int nForecast ) |
Parameters
- nForecast
- Type: System..::.Int32
An input int representing the number of requested forecasts beyond the last value in the series.
Return Value
A double array containing the nForecast+BackwardOrigin forecasts. The first BackwardOrigin forecasts are one-step ahead forecasts for the last BackwardOrigin values in the series. The next nForecast values in the returned series are forecasts for the next values beyond the series.
Exceptions
Exception | Condition |
---|---|
Imsl.Stat..::.NonStationaryException | is thrown if the final maximum likelihood estimates for the time series are nonstationary. |
Imsl.Stat..::.NonInvertibleException | is thrown if the final maximum likelihood estimates for the time series are noninvertible. |
Imsl.Stat..::.InitialMAException | is thrown if the initial values provided for the moving average terms using SetMA are noninvertible. In this case, ARMAMaxLikelihood terminates and does not compute the time series estimates. |
Imsl.Stat..::.MatrixSingularException | is thrown if the input matrix is singular. |
Imsl.Stat..::.TooManyCallsException | is thrown if the number of calls to the function has exceeded the maximum number of iterations times the number of moving average (MA) parameters + 1. |
Imsl.Stat..::.IncreaseErrRelException | is thrown if the bound for the relative error is too small. |
Imsl.Stat..::.NewInitialGuessException | is thrown if the iteration has not made good progress. |
Imsl.Stat..::.IllConditionedException | is thrown if the problem is ill-conditioned. |
Imsl.Stat..::.TooManyIterationsException | is thrown if the maximum number of iterations is exceeded. |
Imsl.Stat..::.TooManyFunctionEvaluationsException | is thrown if the maximum number of function evaluations is exceeded. |
Imsl.Stat..::.TooManyJacobianEvalException | is thrown if the maximum number of Jacobian evaluations is exceeded. |