*/
public static AggregatingHistogram<DoubleDoublePair, DoubleDoublePair> DoubleSumDoubleSumHistogram(int bins, double min, double max) {
return new AggregatingHistogram<DoubleDoublePair, DoubleDoublePair>(bins, min, max, new Adapter<DoubleDoublePair, DoubleDoublePair>() {
@Override
public DoubleDoublePair make() {
return new DoubleDoublePair(0., 0.);
}
@Override
public DoubleDoublePair aggregate(DoubleDoublePair existing, DoubleDoublePair data) {
existing.first = existing.first + data.first;