GarchModel.Forecast Method

Definition

Namespace: Numerics.NET.Statistics.TimeSeriesAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

Forecast() Returns the one step ahead forecast.
Forecast(Int32) Returns the forecast for the specified number of steps ahead.
Forecast(Int32, Vector<Double>, Vector<Double>) Returns the forecast for the specified number of steps ahead.

Forecast(Int32)

Returns the forecast for the specified number of steps ahead.
C#
public override Vector<double> Forecast(
	int steps
)

Parameters

steps  Int32
The number of forecasts to return.

Return Value

Vector<Double>
A vector containing the forecast value for the time series.

Remarks

Note that the first element of the return value, with index 0, is the one step ahead forecast.

Forecast(Int32, Vector<Double>, Vector<Double>)

Returns the forecast for the specified number of steps ahead.
C#
public Vector<double> Forecast(
	int steps,
	Vector<double> responses,
	Vector<double> variances
)

Parameters

steps  Int32
The number of forecasts to return.
responses  Vector<Double>
Vector that contains the pre-sample responses.
variances  Vector<Double>
Vector that contains the pre-sample variances.

Return Value

Vector<Double>
A vector with steps elements that contains the forecasts for the variance of the series.

Remarks

Either or both responses and variances may be null. Only the last q responses are actually used, where q is .

See Also