DiscriminantAnalysisClassify Method (Double, Int32) |
Classify a set of observations using the linear or quadratic
discriminant functions generated during the training process.
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public void Classify(
double[,] x,
int[] varIndex
)
Public Sub Classify (
x As Double(,),
varIndex As Integer()
)
public:
void Classify(
array<double,2>^ x,
array<int>^ varIndex
)
member Classify :
x : float[,] *
varIndex : int[] -> unit
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 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.
Exceptions Remarks An InvalidOperationException is thrown if the leave-out-one
classification method is chosen.
See Also