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