public class FloatEquiDepthHistogram extends PersistentObject
This class stores a list l of float values for which holds:
Constructor and Description |
---|
FloatEquiDepthHistogram(float[] quantileElements)
Constructs an equi-depth histogram with the given quantile elements.
|
Modifier and Type | Method and Description |
---|---|
int |
binOfElement(float element)
Returns the bin index of the given element.
|
int |
bins()
Returns the number of bins.
|
float |
endOfBin(int binIndex)
Returns the end of the range associated with the given bin.
|
double |
percentFromTo(float from,
float to)
Returns the percentage of elements in the range (from,to].
|
double |
phi(float element)
Returns how many percent of the elements contained in the receiver are
<= element.
|
int |
size()
Deprecated.
Deprecated. Returns the number of bin boundaries.
|
float |
startOfBin(int binIndex)
Returns the start of the range associated with the given bin.
|
static void |
test(float element)
Not yet commented.
|
clone
public FloatEquiDepthHistogram(float[] quantileElements)
public int binOfElement(float element)
element
- the element to search for.IllegalArgumentException
- if the element is not contained in any bin.public int bins()
public float endOfBin(int binIndex)
ArrayIndexOutOfBoundsException
- if binIndex < 0 || binIndex >= bins().public double percentFromTo(float from, float to)
from
- the start point (exclusive).to
- the end point (inclusive).public double phi(float element)
element
- the element to search for.@Deprecated public int size()
public float startOfBin(int binIndex)
ArrayIndexOutOfBoundsException
- if binIndex < 0 || binIndex >= bins().public static void test(float element)
Jump to the Parallel Colt Homepage