@Test public void testPercentileAlgorithm_NISTExample() { PercentileSnapshot p = getPercentileForValues(951772, 951567, 951937, 951959, 951442, 950610, 951591, 951195, 951772, 950925, 951990, 951682); Assert.assertEquals(951983, p.getPercentile(90)); Assert.assertEquals(951990, p.getPercentile(100)); }
public int getPercentile(double percentile) { if (!enabled.get()) return -1; getCurrentBucket(); return getCurrentPercentileSnapshot().getPercentile(percentile); }
NumerusRollingPercentile { public int getPercentile(double percentile) { if (!enabled.get()) return -1; getCurrentBucket(); return getCurrentPercentileSnapshot().getPercentile(percentile); } }
NumerusRollingPercentile { public int getPercentile(double percentile) { if (!enabled.get()) return -1; getCurrentBucket(); return getCurrentPercentileSnapshot().getPercentile(percentile); } NumerusRollingPercentile(NumerusProperty<Integer> timeInMilliseconds, NumerusProperty<Integer> numberOfBuckets, NumerusProperty<Integer> bucketDataLength, NumerusProperty<Boolean> enabled);   NumerusRollingPercentile(Time time, NumerusProperty<Integer> timeInMilliseconds, NumerusProperty<Integer> numberOfBuckets, NumerusProperty<Integer> bucketDataLength, NumerusProperty<Boolean> enabled); }
NumerusRollingPercentile { public int getPercentile(double percentile) { if (!enabled.get()) return -1; getCurrentBucket(); return getCurrentPercentileSnapshot().getPercentile(percentile); } NumerusRollingPercentile(NumerusProperty<Integer> timeInMilliseconds, NumerusProperty<Integer> numberOfBuckets, NumerusProperty<Integer> bucketDataLength, NumerusProperty<Boolean> enabled);   NumerusRollingPercentile(Time time, NumerusProperty<Integer> timeInMilliseconds, NumerusProperty<Integer> numberOfBuckets, NumerusProperty<Integer> bucketDataLength, NumerusProperty<Boolean> enabled); void addValue(int... value); int getPercentile(double percentile); int getMean(); void reset(); }
NumerusRollingPercentile { public int getPercentile(double percentile) { if (!enabled.get()) return -1; getCurrentBucket(); return getCurrentPercentileSnapshot().getPercentile(percentile); } NumerusRollingPercentile(NumerusProperty<Integer> timeInMilliseconds, NumerusProperty<Integer> numberOfBuckets, NumerusProperty<Integer> bucketDataLength, NumerusProperty<Boolean> enabled);   NumerusRollingPercentile(Time time, NumerusProperty<Integer> timeInMilliseconds, NumerusProperty<Integer> numberOfBuckets, NumerusProperty<Integer> bucketDataLength, NumerusProperty<Boolean> enabled); void addValue(int... value); int getPercentile(double percentile); int getMean(); void reset();  }