Packagecom.esri.bao.tasks.thematicmapping
Classpublic class Classifier
SubclassesEqualIntervalsClassifier, QuantileClassifier

The Classifier class is the base abstract implementation of the data classifier.



Public Methods
 MethodDefined by
  
classify(data:Array, numBreaks:int):ClassificationResults
Classifies numerical data in a number of classes.
Classifier
Protected Methods
 MethodDefined by
  
ensureValidData(data:Array, numBreaks:int):void
[static] Ensures that the data array is nonempty and that the number of breaks is nonegative.
Classifier
  
getBounds(data:Array):Array
[static] Calculates low and up bounds of values of data array.
Classifier
Method detail
classify()method
public function classify(data:Array, numBreaks:int):ClassificationResults

Classifies numerical data in a number of classes.

This method is "abstract". Its base implementation throws an error.

Parameters
data:Array — Array of numerical values.
 
numBreaks:int — A number of required class breaks.

Returns
ClassificationResults — Classification results.
ensureValidData()method 
protected static function ensureValidData(data:Array, numBreaks:int):void

Ensures that the data array is nonempty and that the number of breaks is nonegative.

This method throws ArgumentError if the input data are invalid.

Parameters
data:Array — Array of numerical values.
 
numBreaks:int — A number of required class breaks.
getBounds()method 
protected static function getBounds(data:Array):Array

Calculates low and up bounds of values of data array.

Parameters
data:Array — Array containing numerical values.

Returns
Array — Array of two numerical values [minValue, maxValue].