put method

void put(
  1. double d
)

Implementation

void put(double d) {
  currentIndex = currentIndex >= data.length ? 0 : currentIndex;
  data[currentIndex++] = d;
  dirty = true;
  dirtyMedian = true;
  dirtyExtremes++;
  vmax = max(vmax, d);
  vmin = min(vmin, d);
}