Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "plrand"

Title:Skippable pseudorandom generator and distributions
Rating:Not rated. Create the first rating!
Latest version:0.9.13
SHA1 sum:ddf1ea6ab32d63620b393a6299ff40ce43d164e3
Author:Samer Abdallah <s.abdallah@ucl.ac.uk>
Download URL:https://github.com/samer--/plrand.git
Requires:dcgutils
genutils

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.9.13ddf1ea6ab32d63620b393a6299ff40ce43d164e351https://github.com/samer--/plrand.git
0.9.11c066158b16936eeb643c87f1d5df5375014a7f323https://github.com/samer--/plrand.git
0.9.1079323f773b997433deda8a3ae138a100073ef3042https://github.com/samer--/plrand.git
5d713537b4caa5daa52bac0044103ce32132f75b3https://github.com/samer--/plrand.git
0.9.946cf89afae35ad63320e0305553677d3d373e09a2https://github.com/samer--/plrand.git
0.9.894b0f9ad230a2029a0f970335864b0702629b6431https://github.com/samer--/plrand.git
5277f257c10fe48830baf3ee48b0677e58f9433f1https://github.com/samer--/plrand.git
0.9.75b3a8b55647d1832f117b8f7d868c5fe62a674152https://github.com/samer--/plrand.git
0.9.27ab0bff9f4fc1a6421230f42877c2078d35f90cf1https://github.com/samer--/plrand.git
7a1033b329553871f9aead7800ec43390883d1252https://github.com/samer--/plrand.git
0.7.33b6fbf048b453bac3ba1d3ada533841c533b9ea91https://github.com/samer--/plrand.git
0.7.21dabf182dc134856261d9f23a8267767595080291https://github.com/samer--/plrand.git
0.7.18ae4419be8a707b71bab136d5acbf6465bbc8d131https://github.com/samer--/plrand.git
0.7.0ec2eb81d02cbe46865e50020bdb5bcd48282f9f51https://github.com/samer--/plrand.git

plrand

Pseudorandom generator with various distributions

This module provides for the sampling of pseudorandom numbers from a variety of distributions, while maintaining complete and explicit control of the random generator state. The generator is a high quality, long period combined multiple recursive generator by Pierre L'Ecuyer, with a period of about 2^191.

The state can be initialised from the truly random /dev/random if this device exists.

The state can be efficiently advanced a known number of steps - this supports stream splitting, by partitioning the sequence of 2^191 values into subsequences.

Predicates for sampling from and computing probabilities from several distributions are included, but not exported -- there is a nicer interface to them in progress -- but in the mean time, see examples/test_crp.pl for usage.

See plrand.pl and crp.pl for more information.

PREREQUISITES

GSL (GNU Scientific Library) for Zeta distribution and probability computations [optional] Pack genutils to run examples/test_crp.pl

ACKNOWLEDGEMENTS

This distribution contains a modified version of the RngStreams library by Pierre L'Ecuyer and Richard Simard. See cpp/RngStream.{h,c} in this distribution.

Contents of pack "plrand"

Pack contains 23 files holding a total of 147K bytes.