Class ExponentialRV

    • Constructor Detail

      • ExponentialRV

        public ExponentialRV()
        Defaults to mean = 1.0
      • ExponentialRV

        public ExponentialRV​(double mean)
        Uses a new stream from the default stream factory
        Parameters:
        mean - must be greater than 0.0
      • ExponentialRV

        public ExponentialRV​(double mean,
                             int streamNum)
        Parameters:
        mean - must be greater than 0.0
        streamNum - the stream number
      • ExponentialRV

        public ExponentialRV​(double mean,
                             RNStreamIfc rng)
        Parameters:
        mean - must be greater than 0.0
        rng - must be null
    • Method Detail

      • newInstance

        public ExponentialRV 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
      • getMean

        public double getMean()
        Returns:
        the mean value
      • generate

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

        public static RVControls makeControls()
        The key is "mean" with default value 1.0
        Returns:
        a control for Exponential random variables