@Test public void testPercentileAlgorithm_Median3() { PercentileSnapshot list = new PercentileSnapshot(50, 75, 100, 125, 160, 170, 180, 200, 210, 300, 500); Assert.assertEquals(175, list.getPercentile(50)); }
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();  }