Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
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 |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.7.0 | ec2eb81d02cbe46865e50020bdb5bcd48282f9f5 | 1 | https://github.com/samer--/plrand.git |
0.7.1 | 8ae4419be8a707b71bab136d5acbf6465bbc8d13 | 1 | https://github.com/samer--/plrand.git |
0.7.2 | 1dabf182dc134856261d9f23a826776759508029 | 1 | https://github.com/samer--/plrand.git |
0.7.3 | 3b6fbf048b453bac3ba1d3ada533841c533b9ea9 | 1 | https://github.com/samer--/plrand.git |
0.9.2 | 7a1033b329553871f9aead7800ec43390883d125 | 2 | https://github.com/samer--/plrand.git |
7ab0bff9f4fc1a6421230f42877c2078d35f90cf | 1 | https://github.com/samer--/plrand.git | |
0.9.7 | 5b3a8b55647d1832f117b8f7d868c5fe62a67415 | 2 | https://github.com/samer--/plrand.git |
0.9.8 | 5277f257c10fe48830baf3ee48b0677e58f9433f | 1 | https://github.com/samer--/plrand.git |
94b0f9ad230a2029a0f970335864b0702629b643 | 1 | https://github.com/samer--/plrand.git | |
0.9.9 | 46cf89afae35ad63320e0305553677d3d373e09a | 2 | https://github.com/samer--/plrand.git |
0.9.10 | 5d713537b4caa5daa52bac0044103ce32132f75b | 3 | https://github.com/samer--/plrand.git |
79323f773b997433deda8a3ae138a100073ef304 | 2 | https://github.com/samer--/plrand.git | |
0.9.11 | c066158b16936eeb643c87f1d5df5375014a7f32 | 3 | https://github.com/samer--/plrand.git |
0.9.13 | ddf1ea6ab32d63620b393a6299ff40ce43d164e3 | 49 | https://github.com/samer--/plrand.git |
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.
GSL (GNU Scientific Library) for Zeta distribution and probability computations [optional] Pack genutils to run examples/test_crp.pl
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.
Pack contains 23 files holding a total of 147K bytes.