mBrightnesses.add(brightness);
}
private void calculateStatistics() {
Collections.sort(mBrightnesses);
}
<BUG>private double getQuantile(final double p) {
</BUG>
return mBrightnesses.get((int) (mBrightnesses.size() * p));
}
}

mBrightnesses.add(brightness);
}
private void calculateStatistics() {
Collections.sort(mBrightnesses);
}
private float getQuantile(final float p) {
return mBrightnesses.get((int) (mBrightnesses.size() * p));
}
}
