code: public void noteValue(double val) {
          numValues++;
          sumValues += val;
          sumSquareValues += val * val;
          if (numValues == 1) {
              minValue = val;
              maxValue = val;
          } else if (val < minValue) {
              minValue = val;
          } else if (val > maxValue) {
              maxValue = val;
          }
      }
docs: {@inheritDoc}