Documentation API of the 'umontreal.iro.lecuyer.rng.TruncatedRandomStream' Java class
TruncatedRandomStream
umontreal.iro.lecuyer.rng

Class TruncatedRandomStream

  • All Implemented Interfaces:
    RandomStream


    public class TruncatedRandomStreamextends Objectimplements RandomStream
    Represents a container random stream generating numbers in an interval (a, b) instead of in (0, 1), where 0 <= a < b <= 1, by using the contained stream. If nextDouble returns u for the contained stream, it will return v = a + (b - a)u, which is uniform over (a, b), for the truncated stream. The method nextInt returns the integer that corresponds to v (by inversion); this integer is no longer uniformly distributed in general.

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.