public class PercentileTracker extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentSkipListMap<Long,Double> |
cslm |
| Constructor and Description |
|---|
PercentileTracker(long windowMillis) |
| Modifier and Type | Method and Description |
|---|---|
double |
getPercentile(int requestedPercentile)
Returns a computed percentile value.
|
protected double |
getPercentile(int requestedPercentile,
ArrayList<Double> values) |
void |
update(double sample)
Updates the average with the latest measurement.
|
protected ConcurrentSkipListMap<Long,Double> cslm
public void update(double sample)
sample - the latest measurement in the rolling averagepublic double getPercentile(int requestedPercentile)
requestedPercentile - Which whole number percentile value needs to be calculated and returnedCopyright © 2014. All Rights Reserved.