get method

double get()

Implementation

double get() {
  if (dirty) {
    average = computeAverage();
    dirty = false;
  }

  return average;
}