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.
|
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 Snapshot getSnapshot()
Sampling
getSnapshot
in interface Sampling
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"