ArcObjects Library Reference (System)  

IClassify.Classify Method

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(
  Long* numClasses
);
[C++]

Parameters

numClasses [in, out]   numClasses is a parameter of type Long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Classify generates the ClassBreaks given the number of classes specified.  Use Classify only after you have added data to the classification using SetHistogramData.

Remarks

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.

See Also

IClassify Interface