This document is archived and information here might be outdated. Recommended version. |
Classifies data into the specified number of classes.
[Visual Basic .NET]
Public Sub Classify ( _
ByRef numClasses As Integer _
)
[C#]
public void Classify (
ref int numClasses
);
[C++]
HRESULT Classify(
System.Int32* numClasses
);
[C++] Parameters numClasses [in, out]
numClasses is a parameter of type int*
Classify generates the ClassBreaks given the number of classes specified. Use Classify only after you have added data to the classification using SetHistogramData.
Having obtained the data values and frequencies using the SetHistogramData method, the next step is to compute some class breaks. Do this by calling the Classify method and specifying the number of classes you would like. You must supply the number of desired classes as a variable defined as a Long. Some classification algorithms will return a different number of class breaks to what you specified. The number of classes will be written back to the variable you supplied, so it is always best to recheck the number of class breaks after calling Classify.