| Constructor and Description |
|---|
Histogram(Reservoir reservoir)
Creates a new
Histogram with the given reservoir. |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
Returns the number of values recorded.
|
Snapshot |
getSnapshot()
Returns a snapshot of the values.
|
long |
getSum()
Returns the sum of values recorded.
|
void |
update(int value)
Adds a recorded value.
|
void |
update(long value)
Adds a recorded value.
|
public void update(int value)
value - the length of the valuepublic void update(long value)
value - the length of the valuepublic long getCount()
public long getSum()
public Snapshot getSnapshot()
SamplinggetSnapshot in interface SamplingCopyright © 2018. All Rights Reserved.