public final SortMetrics sort(double[] data) { values = data; curMetrics.init(); doSort(); return getMetrics(); }