Class ContinuousUniformGenerator

  • All Implemented Interfaces:
    NumberGenerator<java.lang.Double>

    public class ContinuousUniformGenerator
    extends java.lang.Object
    implements NumberGenerator<java.lang.Double>
    Continuous, uniformly distributed random sequence. Generates values in the range mininum (inclusive) ... maximum (exclusive).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double minimumValue  
      private double range  
      private java.util.Random rng  
    • Constructor Summary

      Constructors 
      Constructor Description
      ContinuousUniformGenerator​(double minimumValue, double maximumValue, java.util.Random rng)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double nextValue()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • rng

        private final java.util.Random rng
      • range

        private final double range
      • minimumValue

        private final double minimumValue
    • Constructor Detail

      • ContinuousUniformGenerator

        public ContinuousUniformGenerator​(double minimumValue,
                                          double maximumValue,
                                          java.util.Random rng)
    • Method Detail

      • nextValue

        public java.lang.Double nextValue()
        Specified by:
        nextValue in interface NumberGenerator<java.lang.Double>
        Returns:
        The next value from the generator.