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, setTitles
public RangedClassifier(Comparable[] min, Comparable[] max)
public int getSize()
getSize
in class Classifier
public Object getMin(int slot)
public Object getMax(int slot)
public int classify(Object value)
Classifier
classify
in class Classifier
Copyright © 1996–2023 Geotools. All rights reserved.