Пример #1
0
  public void add(double value) {
    if (range.isInside(value)) {
      int slot = bucketize(value);

      histogram[slot]++;
      maxHits = Math.max(maxHits, histogram[slot]);
    } else {
      if (value < range.getMinimum()) underflows++;
      else overflows++;
    }

    total++;
  }
Пример #2
0
 public double getMinimum() {
   return range.getMinimum();
 }