DiscriminantAnalysisClassify Method (Double, 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.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public void Classify(
double[,] x,
int[] frequencies,
double[] weights
)
Public Sub Classify (
x As Double(,),
frequencies As Integer(),
weights As Double()
)
public:
void Classify(
array<double,2>^ x,
array<int>^ frequencies,
array<double>^ weights
)
member Classify :
x : float[,] *
frequencies : int[] *
weights : float[] -> unit
Parameters
- x
- Type: SystemDouble
A double matrix containing the observations with
at least nVariables columns.
The first nVariables columns correspond to the
variables. Reclassification does not require group numbers
be present. Any additional columns will be ignored.
- 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 Remarks An InvalidOperationException is thrown if the leave-out-one
classification method is chosen.
See Also