Classify a set of observations and compare against known groups using
the linear or quadratic discriminant functions generated during the
training process.
Namespace:
Imsl.Stat
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public void Classify(
double[,] x,
int[] group,
int[] varIndex
) |
Visual Basic (Declaration) |
---|
Public Sub Classify ( _
x As Double(,), _
group As Integer(), _
varIndex As Integer() _
) |
Visual C++ |
---|
public:
void Classify(
array<double,2>^ x,
array<int>^ group,
array<int>^ varIndex
) |
Parameters
- x
- Type: array<
System..::.Double
,2>[,](,)[,]
A double matrix containing the observations with
at least nVariables columns.
The columns indicated in varIndex correspond to
the variables. Any additional columns will be ignored.
- group
- Type: array<
System..::.Int32
>[]()[]
An int array containing the group numbers.
The groups must be numbered 1,2, ..., nGroups
for each observation.
- varIndex
- Type: array<
System..::.Int32
>[]()[]
An int array containing the column indices
in x that correspond to the variables to
be used in the analysis.
Exceptions
See Also