docs: public void setSmoothing(double smoothing)
      {
          if (smoothing <= 0 || smoothing > 1 || Double.isNaN(smoothing))
              throw new IllegalArgumentException("Smoothing must be in (0, 1], not " + smoothing);
          this.smoothing = smoothing;
      }