public final class RangedClassifier extends Classifier
The buckets are defined such that:
min <= x < max
So if you provide the following min/max values:
min = {3, 6, 9}
max = {4, 10, 30}
The classify function will classify items based on:
3 <= x < 4
6 <= x < 10
9 <= x <= 30
| Constructor and Description |
|---|
RangedClassifier(Comparable[] min,
Comparable[] max) |
| Modifier and Type | Method and Description |
|---|---|
int |
classify(Object value)
Returns the slot this value belongs in.
|
Object |
getMax(int slot) |
Object |
getMin(int slot) |
int |
getSize() |
classify, getPercentages, getTitle, getTitles, setPercentages, setTitle, setTitlespublic RangedClassifier(Comparable[] min, Comparable[] max)
public int getSize()
getSize in class Classifierpublic Object getMin(int slot)
public Object getMax(int slot)
public int classify(Object value)
Classifierclassify in class ClassifierCopyright © 1996–2021 Geotools. All rights reserved.