Class UniformRV

    • Constructor Detail

      • UniformRV

        public UniformRV()
      • UniformRV

        public UniformRV​(double min,
                         double max)
      • UniformRV

        public UniformRV​(double min,
                         double max,
                         int streamNum)
      • UniformRV

        public UniformRV​(double min,
                         double max,
                         RNStreamIfc rng)
    • Method Detail

      • newInstance

        public UniformRV newInstance​(RNStreamIfc rng)
        Parameters:
        rng - the RngIfc to use
        Returns:
        a new instance with same parameter value
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getMinimum

        public double getMinimum()
        Gets the lower limit
        Returns:
        The lower limit
      • getMaximum

        public double getMaximum()
        Gets the upper limit
        Returns:
        The upper limit
      • generate

        protected double generate()
        Specified by:
        generate in class AbstractRVariable
        Returns:
        the randomly generated variate
      • makeControls

        public static RVControls makeControls()
        The keys are "min" with default value 0.0 and "max" with default value 1.0
        Returns:
        a control for Uniform random variables