|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.callback.quantiles.Bucket
public final class Bucket
Bucket count the number of samples in the range min-max.
| Field Summary | |
|---|---|
private int |
count
Number of values in the range min-max. |
private long |
max
Maximal value. |
private long |
min
Minimal value. |
| Constructor Summary | |
|---|---|
Bucket(long min,
long max)
Constructor with min/max value specified. |
|
| Method Summary | |
|---|---|
boolean |
addValue(long value)
Check if value is in range and increment value number. |
void |
clear()
Resets value number. |
boolean |
contains(long value)
Check whether value is in the range. |
int |
getCount()
Get number of values in the range. |
long |
getMax()
Get upper bound of the range. |
long |
getMin()
Get lower bound of the range. |
void |
incrementCount()
Increment value number |
BucketSample |
sample()
Get sample from this bucket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final long min
private final long max
private int count
| Constructor Detail |
|---|
public Bucket(long min,
long max)
min - min valuemax - max value| Method Detail |
|---|
public int getCount()
public long getMax()
public long getMin()
public boolean contains(long value)
value - Value
public void incrementCount()
public boolean addValue(long value)
value - added value
public void clear()
public BucketSample sample()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||