Click or drag to resize
NaiveBayesClassifierGetMeans Method
Returns a table of means for each continuous attribute in continuousData segmented by the target classes in classificationData.

Namespace: Imsl.DataMining
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public double[][] GetMeans(
	double[][] continuousData,
	int[] classificationData
)

Parameters

continuousData
Type: SystemDouble
A double matrix containing training values for the continuous attributes.
classificationData
Type: SystemInt32
An int array containing the target classifications for the training patterns.

Return Value

Type: Double
A continuousData[0].Length by nClassesdouble matrix, means, containing the means segmented by the target classes. The i-th row contains the means of the i-th continuous attribute for each value of the target classification. That is, means[i][j] is the mean for the i-th continuous attribute when the target classification equals j, unless there are no training patterns for this condition.
Remarks

This method is provided as a utility, prior training is not necessary.

See Also