public synchronized DistributionSnapshot snapshot() { List<Long> quantiles = digest.getQuantiles(ImmutableList.of(0.01, 0.05, 0.10, 0.25, 0.5, 0.75, 0.9, 0.95, 0.99)); return new DistributionSnapshot( getMaxError(), getCount(), getTotal(), quantiles.get(0), quantiles.get(1), quantiles.get(2), quantiles.get(3), quantiles.get(4), quantiles.get(5), quantiles.get(6), quantiles.get(7), quantiles.get(8), getMin(), getMax(), getAvg()); }
public synchronized DistributionSnapshot snapshot() { List<Long> quantiles = digest.getQuantiles(ImmutableList.of(0.01, 0.05, 0.10, 0.25, 0.5, 0.75, 0.9, 0.95, 0.99)); return new DistributionSnapshot( getMaxError(), getCount(), getTotal(), quantiles.get(0), quantiles.get(1), quantiles.get(2), quantiles.get(3), quantiles.get(4), quantiles.get(5), quantiles.get(6), quantiles.get(7), quantiles.get(8), getMin(), getMax(), getAvg()); }