Performs lack-of-fit test for a univariate time series or transfer
function given the appropriate correlation function.
Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double[] Compute( int nObservations, double[] correlations, int npFree, int lagMax, int lagMin ) |
Visual Basic (Declaration) |
---|
Public Shared Function Compute ( _ nObservations As Integer, _ correlations As Double(), _ npFree As Integer, _ lagMax As Integer, _ lagMin As Integer _ ) As Double() |
Visual C++ |
---|
public: static array<double>^ Compute( int nObservations, array<double>^ correlations, int npFree, int lagMax, int lagMin ) |
Parameters
- nObservations
- Type: System..::.Int32
An int containing the number of observations of the stationary time series.
- correlations
- Type: array<
System..::.Double
>[]()[]
A double array of length lagMax+1 containing the correlation function.
- npFree
- Type: System..::.Int32
An int scalar specifying the number of free parameters in the formulation of the time series model. npfree must be greater than or equal to zero and less than lagMax. Woodfield (1990) recommends npFree = p + q.
- lagMax
- Type: System..::.Int32
An int scalar specifying the maximum lag of the correlation function.
- lagMin
- Type: System..::.Int32
An int scalar specifying the minimum lag of the correlation function. lagMin corresponds to the lower bound of summation in the lack of fit test statistic.Default: lagMin = 1.