This document is archived and information here might be outdated.  Recommended version.


IClassify.Classify Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IC > IClassify Interface > IClassify.Classify Method
ArcGIS Developer Help

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(
  System.Int32* numClasses
);
[C++]
Parameters
numClasses [in, out]

numClasses is a parameter of type int*

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