DiscriminantAnalysisClassify Method (Double, Int32, Int32, Int32, Double) |
Classify a set of observations, associated frequencies and weights, and
compare against known groups 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[] group,
int[] varIndex,
int[] frequencies,
double[] weights
)
Public Sub Classify (
x As Double(,),
group As Integer(),
varIndex As Integer(),
frequencies As Integer(),
weights As Double()
)
public:
void Classify(
array<double,2>^ x,
array<int>^ group,
array<int>^ varIndex,
array<int>^ frequencies,
array<double>^ weights
)
member Classify :
x : float[,] *
group : int[] *
varIndex : int[] *
frequencies : int[] *
weights : float[] -> 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. Additional columns are ignored.
- group
- Type: SystemInt32
An int array containing the group numbers.
The groups must be numbered 1,2, ..., nGroups
for each observation.
- 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 See Also