Click or drag to resize
DiscriminantAnalysisClassify Method (Double, Int32, Int32, Double)
Classify a set of observations and associated frequencies and weights using the linear or quadratic discriminant functions generated during the training process.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public void Classify(
	double[,] x,
	int[] varIndex,
	int[] frequencies,
	double[] weights
)

Parameters

x
Type: SystemDouble
A double matrix containing the observations with at least nVariables columns. The columns indicated in varIndex correspond to the variables. Reclassification does not require group numbers be present. Additional columns in x will be ignored.
varIndex
Type: SystemInt32
An int array containing the column indices in x that correspond to the variables to be used in the analysis.
frequencies
Type: SystemInt32
An int array containing the associated frequencies for each observation.
weights
Type: SystemDouble
A double array containing the associated weights for each observation.
Exceptions
ExceptionCondition
SumOfWeightsNegException is thrown when the sum of the weights have become negative.
EmptyGroupExceptionis thrown when there are no observations in a group.
CovarianceSingularException is thrown when the variance-covariance matrix is singular.
Remarks
An InvalidOperationException is thrown if the leave-out-one classification method is chosen.
See Also