code: public void setMaxScaled(double maxFeature)
      {
          if(Double.isNaN(maxFeature))
              throw new ArithmeticException("NaN is not a valid feature value");
          else if(maxFeature > 1)
              throw new ArithmeticException("Maximum possible feature value is 1, can not use " + maxFeature);
          else if(maxFeature <= minScaled)
              throw new ArithmeticException("Maximum feature value must be learger than the minimum");
          this.maxScaled = maxFeature;
      }
docs: Sets the maximum value of any feature after scaling is applied. This
  value can be no greater than 1.
  @param maxFeature the maximum feature value after scaling