public class WeightedSnapshot extends Snapshot
WeightedSnapshot
.Modifier and Type | Class and Description |
---|---|
static class |
WeightedSnapshot.WeightedSample
A single sample item with value and its weights for
WeightedSnapshot . |
Constructor and Description |
---|
WeightedSnapshot(java.util.Collection<WeightedSnapshot.WeightedSample> values)
Create a new
Snapshot with the given values. |
Modifier and Type | Method and Description |
---|---|
void |
dump(java.io.OutputStream output)
Writes the values of the snapshot to the given stream.
|
long |
getMax()
Returns the highest value in the snapshot.
|
double |
getMean()
Returns the weighted arithmetic mean of the values in the snapshot.
|
long |
getMin()
Returns the lowest value in the snapshot.
|
double |
getStdDev()
Returns the weighted standard deviation of the values in the snapshot.
|
double |
getValue(double quantile)
Returns the value at the given quantile.
|
long[] |
getValues()
Returns the entire set of values in the snapshot.
|
int |
size()
Returns the number of values in the snapshot.
|
get75thPercentile, get95thPercentile, get98thPercentile, get999thPercentile, get99thPercentile, getMedian
public WeightedSnapshot(java.util.Collection<WeightedSnapshot.WeightedSample> values)
Snapshot
with the given values.values
- an unordered set of values in the reservoirpublic double getValue(double quantile)
public int size()
public long[] getValues()
public long getMax()
public long getMin()
public double getMean()
public double getStdDev()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"