@BetaApi public class Distribution extends Object
| Constructor and Description |
|---|
Distribution(int totalBuckets) |
| Modifier and Type | Method and Description |
|---|---|
Distribution |
copy()
Make a copy of the distribution.
|
long[] |
getBucketCounts()
Gets the accumulated count of every bucket of the distribution.
|
long |
getCount()
Numbers of values recorded.
|
double |
getMean()
Mean of the recorded values.
|
long |
getNthPercentile(double percentile)
Get the bucket that records values up to the given percentile.
|
double |
getSumOfSquareDeviations()
Square deviations of the recorded values.
|
void |
record(int bucket)
Record a new value.
|
void |
reset()
Resets (sets to 0) the recorded values.
|
String |
toString() |
public long getNthPercentile(double percentile)
public void reset()
public long getCount()
public double getSumOfSquareDeviations()
public double getMean()
public long[] getBucketCounts()
public Distribution copy()
public void record(int bucket)