Class ShiftedGeometricRV

    • Constructor Detail

      • ShiftedGeometricRV

        public ShiftedGeometricRV​(double prob)
        Parameters:
        prob - probability of success, must be in range (0,1)
      • ShiftedGeometricRV

        public ShiftedGeometricRV​(double prob,
                                  int streamNum)
        Parameters:
        prob - probability of success, must be in range (0,1)
        streamNum - the stream number to use
      • ShiftedGeometricRV

        public ShiftedGeometricRV​(double prob,
                                  RNStreamIfc stream)
        Parameters:
        prob - probability of success, must be in range (0,1)
        stream - the random number stream to use
    • Method Detail

      • newInstance

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

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

        public double getProbabilityOfSuccess()
        Gets the success probability
        Returns:
        The success probability
      • generate

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

        public static RVControls makeControls()
        The key is "ProbOfSuccess", the default value is 0.5
        Returns:
        a control for ShiftedGeometric random variables