long getPercentile(int i, long now) { return getQuantile(i, 100, now); }
/** * Returns the <code>k</code>th <code>q</code>-quantile of the samples * seen thus far. * * @param q must be >= 2 * @param k must be 0 < k < q * @return k-th q-quantile, or 0 if there is no data * @throws QuantileOutOfBoundsException if k <= 0 or k >= q */ public long getQuantile(int k, int q) { return getQuantile(k, q, System.currentTimeMillis()); }