|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.PersistentObject
org.apache.mahout.math.jet.stat.quantile.EquiDepthHistogram
@Deprecated public class EquiDepthHistogram
Constructor Summary | |
---|---|
EquiDepthHistogram(float[] quantileElements)
Deprecated. Constructs an equi-depth histogram with the given quantile elements. |
Method Summary | |
---|---|
int |
binOfElement(float element)
Deprecated. Returns the bin index of the given element. |
int |
bins()
Deprecated. Returns the number of bins. |
float |
endOfBin(int binIndex)
Deprecated. Returns the end of the range associated with the given bin. |
double |
percentFromTo(float from,
float to)
Deprecated. Returns the percentage of elements in the range (from,to]. |
double |
phi(float element)
Deprecated. 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)
Deprecated. Returns the start of the range associated with the given bin. |
Methods inherited from class org.apache.mahout.math.PersistentObject |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EquiDepthHistogram(float[] quantileElements)
Method Detail |
---|
public int binOfElement(float element)
element
- the element to search for.
java.lang.IllegalArgumentException
- if the element is not contained in any bin.public int bins()
public float endOfBin(int binIndex)
java.lang.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)
java.lang.ArrayIndexOutOfBoundsException
- if binIndex < 0 || binIndex >= bins().
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |