Package org.geotools.filter.function
Class Classifier
Object
Classifier
- Direct Known Subclasses:
ExplicitClassifier
,RangedClassifier
The data structure returned by classification functions. We can take this object, tweak it, and then pass it to a
ClassifyFunction.
- Author:
- Cory Horner, Refractions Research
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
Returns the slot this value belongs in.int
classify
(Expression expr, Object feature) Returns the slot containing the passed expression's value.double[]
abstract int
getSize()
getTitle
(int slot) String[]
void
setPercentages
(double[] percentages) void
void
-
Constructor Details
-
Classifier
public Classifier()
-
-
Method Details
-
getTitles
-
setTitles
-
setTitle
-
getTitle
-
classify
Returns the slot containing the passed expression's value. -
classify
Returns the slot this value belongs in.- Returns:
- index, starting from zero
-
getSize
public abstract int getSize()- Returns:
- the number of bins
-
getPercentages
public double[] getPercentages()- Returns:
- percentages for each class
-
setPercentages
public void setPercentages(double[] percentages) - Parameters:
percentages
- a double array with percentages for each class
-