@Test public void testNegativeValues() { QuantileDigest digest = new QuantileDigest(1); addAll(digest, asList(-1, -2, -3, -4, -5, 0, 1, 2, 3, 4, 5)); assertEquals(digest.getCount(), (double) 11); }
public double getCount() { return weightedCount / weight(TimeUnit.NANOSECONDS.toSeconds(ticker.read())); }
QuantileDigest { public double getCount() { return weightedCount / weight(TimeUnit.NANOSECONDS.toSeconds(ticker.read())); } }
QuantileDigest { public double getCount() { return weightedCount / weight(TimeUnit.NANOSECONDS.toSeconds(ticker.read())); } QuantileDigest(double maxError);  QuantileDigest(double maxError, double alpha); @VisibleForTesting  QuantileDigest(double maxError, double alpha, Ticker ticker);  QuantileDigest(QuantileDigest other);  QuantileDigest(Slice serialized); }
QuantileDigest { public double getCount() { return weightedCount / weight(TimeUnit.NANOSECONDS.toSeconds(ticker.read())); } QuantileDigest(double maxError);  QuantileDigest(double maxError, double alpha); @VisibleForTesting  QuantileDigest(double maxError, double alpha, Ticker ticker);  QuantileDigest(QuantileDigest other);  QuantileDigest(Slice serialized); double getMaxError(); double getAlpha(); void add(long value); void add(long value, long count); void merge(QuantileDigest other); List<Long> getQuantilesLowerBound(List<Double> quantiles); List<Long> getQuantilesUpperBound(List<Double> quantiles); List<Long> getQuantiles(List<Double> quantiles); long getQuantile(double quantile); long getQuantileLowerBound(double quantile); long getQuantileUpperBound(double quantile); double getCount(); List<Bucket> getHistogram(List<Long> bucketUpperBounds); List<Bucket> getHistogram(List<Long> bucketUpperBounds, MiddleFunction middleFunction); long getMin(); long getMax(); int estimatedInMemorySizeInBytes(); int estimatedSerializedSizeInBytes(); Slice serialize(); double getConfidenceFactor(); @SuppressFBWarnings("VA_FORMAT_STRING_USES_NEWLINE") String toGraphviz(); }
QuantileDigest { public double getCount() { return weightedCount / weight(TimeUnit.NANOSECONDS.toSeconds(ticker.read())); } QuantileDigest(double maxError);  QuantileDigest(double maxError, double alpha); @VisibleForTesting  QuantileDigest(double maxError, double alpha, Ticker ticker);  QuantileDigest(QuantileDigest other);  QuantileDigest(Slice serialized); double getMaxError(); double getAlpha(); void add(long value); void add(long value, long count); void merge(QuantileDigest other); List<Long> getQuantilesLowerBound(List<Double> quantiles); List<Long> getQuantilesUpperBound(List<Double> quantiles); List<Long> getQuantiles(List<Double> quantiles); long getQuantile(double quantile); long getQuantileLowerBound(double quantile); long getQuantileUpperBound(double quantile); double getCount(); List<Bucket> getHistogram(List<Long> bucketUpperBounds); List<Bucket> getHistogram(List<Long> bucketUpperBounds, MiddleFunction middleFunction); long getMin(); long getMax(); int estimatedInMemorySizeInBytes(); int estimatedSerializedSizeInBytes(); Slice serialize(); double getConfidenceFactor(); @SuppressFBWarnings("VA_FORMAT_STRING_USES_NEWLINE") String toGraphviz();  }