Returns the array of covariances.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public double[,,] GetCovariance()
Visual Basic (Declaration)
Public Function GetCovariance As Double(,,)
Visual C++
public:
array<double,3>^ GetCovariance()

Return Value

A g by nVariables by nVariablesdouble array containing the covariances. Where, g = nGroups+1 if pooled, group covariance computation is specified or g=1 if pooled covariance computation is specified. When pooled only covariance matrices are computed, the within-group covariance matrices are not computed. The pooled covariance matrix is always computed and is returned as the g-th covariance matrix.

If this method is invoked before classification, the unscaled covariance matrix will be returned.

Exceptions

ExceptionCondition
Imsl.Stat..::.EmptyGroupExceptionis thrown when there are no observations in a group.
Imsl.Stat..::.CovarianceSingularExceptionis thrown when the variance-covariance matrix is singular.

See Also