Package Cl-Variates - internal and external symbols

Part of:

asdf-system cl-variates
See only external symbols

The variates package provides portable random number generation as well as numerous distributions.

Package Cl-Variates uses the packages Common-Lisp. It is also known as Variates. It has 91 total symbols and 29 external ones.

Class

basic-random-number-generator Root superclass for all random number generators. From Numerical Recipes in C:'Minimal' random number generator of Park and Miller with Bayes-Dur... Mixing this class into another class will make it appear to be a random number generator. The new... From Numerical Recipes in C:This is a quick and dirty generator which 'is about as good as any...

Variable

*probability-of-heads* The default probably used in calls to flip (and therefore in calls tobinomial and geometric). This variable takes the place of CL's random-state. It can be supplied asa generator to all th...

Function

binomial Flip a coin (using flip) n times with probability p and return the number of heads. Return a single element from the exponential distribution. Flip a pseudo-random coin and return true if it comes up heads. The defaultprobably of heads for... Returns a sample from the geometric distribution with probability p. I.e., it returns the numbe... Returns a integer pseudo random number between low (inclusive) and high (inclusive). Return a new random number generator of class class' using seed' as the initial seed. Returns a normally distributed double-float pseudo random numberwith using 'mean' and 'standard-... Gets a single value sampled from the normal distribution with mean mean' and
standard devation ... Simple standin for Common Lisp random function. [[?? remove, just type more]] Returns T with probability given. Defaults to 0.5d0. Returns a element selected from sequence uniformly at random. Start and end can be supplied to se... Returns a pseudo random number between low (inclusive) and high (exclusive or inclusive depending... Returns a pseudo random number between low and high (both inclusive). If low and high are both in... Returns a sub-sequence of seq with probability pr that each element of seq will be included... Returns a bit vector of size total-size with exactly sample-sizebits set to 1. The one bits are ... Returns a double-float pseudo random number between low (inclusive) and high (exclusive).

Generic-Function

initialize-random-number-generator (Internal) (Re)initialize a random number generator. Calledwhen the generator is created and whe... Returns the next pseudo random number from a random numbergenerator (using the generator as outp... Returns the original random seed of the generator. Destructively rearrange the elements of a container by performing 'times' swaps. If times is not ...