Class AbstractMVRVariable

    • Field Detail

      • myRNG

        protected RNStreamIfc myRNG
        myRNStream provides a reference to the underlying stream of random numbers
    • Constructor Detail

      • AbstractMVRVariable

        public AbstractMVRVariable​(RNStreamIfc rng)
    • Method Detail

      • getName

        public final java.lang.String getName()
        Specified by:
        getName in interface GetNameIfc
        Returns:
        a string representing the name of the object
      • getId

        public final int getId()
        Specified by:
        getId in interface IdentityIfc
        Returns:
        an int representing the id of the object
      • setName

        public final void setName​(java.lang.String str)
        Sets the name
        Parameters:
        str - The name as a string.
      • setRandomNumberStream

        public final void setRandomNumberStream​(RNStreamIfc stream)
        Sets the underlying random number source
        Specified by:
        setRandomNumberStream in interface SetRandomNumberStreamIfc
        Parameters:
        stream - the reference to the random number generator, must not be null
      • resetStartStream

        public final void resetStartStream()
        Description copied from interface: RNStreamControlIfc
        The resetStartStream method will position the RNG at the beginning of its stream. This is the same location in the stream as assigned when the RNG was created and initialized.
        Specified by:
        resetStartStream in interface RNStreamControlIfc
      • setAntitheticOption

        public final void setAntitheticOption​(boolean flag)
        Description copied from interface: RNStreamControlIfc
        Tells the stream to start producing antithetic variates
        Specified by:
        setAntitheticOption in interface RNStreamControlIfc
        Parameters:
        flag - true means that it produces antithetic variates.