|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.common.statistic.Histogram.Bucket
public class Histogram.Bucket

Represents a bucket in a histogram.
| Constructor Summary | |
|---|---|
protected |
Histogram.Bucket(T lowerBound,
T upperBound)
|
| Method Summary | |
|---|---|
protected void |
addValue(T value)
Add a value to this bucket |
int |
checkValue(T value,
boolean isLast)
Check whether the value fits in this bucket. |
int |
compareTo(Histogram.Bucket that)
|
boolean |
equals(Object obj)
|
T |
getLowerBound()
Get the lower bound of this bucket. |
protected Class<T> |
getNumberClass()
|
long |
getNumberOfValues()
Get the number of values in this bucket. |
float |
getPercentageOfValues()
Return the percentage of values in the histogram that appear in this bucket. |
T |
getUpperBound()
Get the upper bound of this bucket. |
T |
getWidth()
Get the width of this bucket. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Histogram.Bucket(T lowerBound,
T upperBound)
| Method Detail |
|---|
public T getLowerBound()
public T getUpperBound()
public T getWidth()
public float getPercentageOfValues()
protected void addValue(T value)
value - public long getNumberOfValues()
public int checkValue(T value,
boolean isLast)
value - the value to checkisLast -
public int compareTo(Histogram.Bucket that)
compareTo in interface Comparable<Histogram.Bucket>protected Class<T> getNumberClass()
public boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||