Returns the linear discriminant function coefficients.

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

Syntax

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

Return Value

An nGroups by nVariablesdouble matrix containing the linear discriminant function coefficients. The first column of the matrix contains the constant term, and the remaining columns contain the variable coefficients. The i-th row of the returned matrix corresponds to group i. The coefficients are always computed as linear discriminant function coefficients even when quadratic discrimination is specified.

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