public class Percentile extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Percentile.InsufficientSamplesException
Indicates too few measurements have been added to compute the requested
estimation
|
| Constructor and Description |
|---|
Percentile() |
Percentile(float[] quantiles) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(float x)
Add a measurement to estimate
|
void |
clear()
clear existing samples
|
float[] |
getEstimates()
get the estimates based on the last sample
|
float |
getMax() |
float |
getMin() |
int |
getNSamples() |
float[] |
getQuantiles() |
boolean |
isReady() |
static void |
print(PrintStream out,
String name,
Percentile p)
print a nice histogram of percentiles
|
public void clear()
public void add(float x)
x - - the value of the measurementpublic float[] getQuantiles()
public boolean isReady()
public int getNSamples()
public float[] getEstimates()
throws Percentile.InsufficientSamplesException
Percentile.InsufficientSamplesException - - if no estimate is currently available due to insufficient datapublic float getMin()
public float getMax()
public static void print(PrintStream out, String name, Percentile p)
out - - output streamname - - data set namep - - percentileCopyright © 2012–2018 Conversant Engineering. All rights reserved.