public class PercentileEstimatorBase extends Object implements PercentileEstimator
Modifier and Type | Field and Description |
---|---|
protected long[] |
values |
Constructor and Description |
---|
PercentileEstimatorBase(String configKey,
String defaultPList,
int valueArraySize) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(long value,
long count,
long min,
long max) |
protected double |
getInterpolatedPercentile(int p,
long count) |
int |
getNumPercentiles() |
int |
getPercentage(int index) |
double |
getPercentileEstimate(int index,
long count,
long min,
long max) |
XmlBuilder |
getSample(int index,
long count,
long min,
long max) |
int |
getSampleCount(long count,
long min,
long max) |
protected void |
storeFirstValue(long value,
long count) |
public void addValue(long value, long count, long min, long max)
addValue
in interface PercentileEstimator
protected void storeFirstValue(long value, long count)
protected double getInterpolatedPercentile(int p, long count)
public double getPercentileEstimate(int index, long count, long min, long max)
getPercentileEstimate
in interface PercentileEstimator
public int getNumPercentiles()
getNumPercentiles
in interface PercentileEstimator
public int getPercentage(int index)
getPercentage
in interface PercentileEstimator
public int getSampleCount(long count, long min, long max)
getSampleCount
in interface PercentileEstimator
public XmlBuilder getSample(int index, long count, long min, long max)
getSample
in interface PercentileEstimator
Copyright © 2023 Frank!Framework. All rights reserved.