Пример #1
0
 /** Sets the internal state. */
 public void setState(double min, double max) {
   if (max < min) {
     setState(max, min);
     return;
   }
   this.min = min;
   this.max = max;
 }
Пример #2
0
 /** Constructs a uniform distribution with the given minimum and maximum. */
 public Uniform(double min, double max, RandomEngine randomGenerator) {
   setRandomGenerator(randomGenerator);
   setState(min, max);
 }