Documentation of 'umontreal.iro.lecuyer.randvar.UnuranContinuous' Java class
UnuranContinuous
umontreal.iro.lecuyer.randvar

Class UnuranContinuous



  • public class UnuranContinuous
    extends RandomVariateGen
    This class permits one to create continuous univariate distribution using UNURAN via its string API.
    • Constructor Detail

      • UnuranContinuous

        public UnuranContinuous(RandomStream s,
                                RandomStream aux,
                                java.lang.String genStr)
        Constructs a new continuous random number generator using the UNURAN generator specification string genStr, main stream s, and auxiliary stream aux.
    • Method Detail

      • nextDouble

        public double nextDouble()
        Description copied from class: RandomVariateGen
        Generates a random number from the continuous distribution contained in this object. By default, this method uses inversion by calling the inverseF method of the distribution object. Alternative generating methods are provided in subclasses.
        Overrides:
        nextDouble in class RandomVariateGen
        Returns:
        the generated value
      • nextArrayOfDouble

        public void nextArrayOfDouble(double[] v,
                                      int start,
                                      int n)
        Description copied from class: RandomVariateGen
        Generates n random numbers from the continuous distribution contained in this object. These numbers are stored in the array v, starting from index start. By default, this method calls nextDouble() n times, but one can override it in subclasses for better efficiency.
        Overrides:
        nextArrayOfDouble in class RandomVariateGen
        Parameters:
        v - array in which the variates will be stored
        start - starting index, in v, of the new variates
        n - number of variates to generate
      • getAuxStream

        public RandomStream getAuxStream()
        Returns the auxiliary random number stream.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.