Class InverseCDFRV

    • Constructor Detail

      • InverseCDFRV

        public InverseCDFRV​(InverseCDFIfc invFun)
        Makes one using the next stream from the underlying stream provider
        Parameters:
        invFun - the inverse of the distribution function, must not be null
      • InverseCDFRV

        public InverseCDFRV​(InverseCDFIfc invFun,
                            int streamNum)
        Makes one using the supplied stream number to assign the stream
        Parameters:
        invFun - the inverse of the distribution function, must not be null
        streamNum - a positive integer
      • InverseCDFRV

        public InverseCDFRV​(InverseCDFIfc invFun,
                            RNStreamIfc rng)
        Parameters:
        invFun - the inverse of the distribution function, must not be null
        rng - a random number stream, must not be null
    • Method Detail

      • generate

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

        public RVariableIfc newInstance​(RNStreamIfc rng)
        Parameters:
        rng - the RNStreamIfc to use
        Returns:
        a new instance with same parameter values