Click or drag to resize
DiscriminantAnalysisGetCovariance Method
Returns the array of covariances.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public double[,,] GetCovariance()

Return Value

Type: Double
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
EmptyGroupExceptionis thrown when there are no observations in a group.
CovarianceSingularExceptionis thrown when the variance-covariance matrix is singular.
See Also