void () { final int mean = 0; final int stddev = 100; final int percentileToEstimate = 10; final double step = 1; final int startWith = mean; final FrugalQuantileEstimator estimator = new FrugalQuantileEstimator(percentileToEstimate, step, startWith); final int[] samples = new int[SAMPLES]; for (int i = 0; i < samples.length; i++) { final double gaussian = rnd.nextGaussian(mean, stddev); samples[i] = (int)Math.abs(gaussian > 2 * stddev ? 2 * stddev : gaussian); } checkEstimatorIsGoodOnSamples(estimator, samples, expectedTolerance(step, SAMPLES)); }