code: public void event(double value, long time) {
      int barIndex = getBarIndex(value);
      Bar bar = bars.get(barIndex);
      long before = bar.count();
      bar.insert(value, time);
      long after = bar.count();
      size += (after - before);
      if (after > maxBarSize(barIndex)) {
        split(bar, barIndex);
      }
    }
docs: Record an event of the given {@code value} occuring at he given {@code time}
  
  @param value event value
  @param time event time