@param axis an axis defining interval boundaries.
@param resolution a measure of accuracy; the desired number of subintervals per interval.
*/
public synchronized MightyStaticBin1D[] splitApproximately(hep.aida.IAxis axis, int k) {
DoubleArrayList percentages = new DoubleArrayList(new hep.aida.ref.Converter().edges(axis));
percentages.beforeInsert(0,Double.NEGATIVE_INFINITY);
percentages.add(Double.POSITIVE_INFINITY);
for (int i=percentages.size(); --i >= 0; ) {
percentages.set(i, quantileInverse(percentages.get(i)));
}