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 {
            if (!averagingPeriod.isBound()) {
                averagingPeriod.set(Helper.clamp(0, MAX_PERIOD, PERIOD));
            }
        }
    }
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
src/main/java/eu/hansolo/tilesfx/Tile.java