code: public void setAveragingPeriod(final int PERIOD) {
          if (null == averagingPeriod) {
              _averagingPeriod = Helper.clamp(0, MAX_PERIOD, PERIOD);
              getMovingAverage().setPeriod(_averagingPeriod); // MAX 1000 values
              if (null == showing) return;
              fireTileEvent(AVERAGING_EVENT);
          } else {
              averagingPeriod.set(Helper.clamp(0, MAX_PERIOD, PERIOD));
          }
      }
docs: Defines the number values that should be used for
  the averaging of values. The value must be in the
  range of 1 - 1000.
  @param PERIOD