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.

ran1-random-number-generator

From Numerical Recipes in C:

'Minimal' random number generator of Park and Miller with Bayes-Dur...

random-number-generation-mixin

Mixing this class into another class will make it appear to be a random number generator. The new...

ranq1-random-number-generator

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 to
binomial and geometric).

*random-generator*

This variable takes the place of CL's random-state. It can be supplied as
a generator to all th...

Function

binomial

Flip a coin (using flip) n times with probability p and return the number of heads.

exponential-random

Return a single element from the exponential distribution.

exponential-random*
flip

Flip a pseudo-random coin and return true if it comes up heads. The default
probably of heads for...

geometric

Returns a sample from the geometric distribution with probability p. I.e., it returns the numbe...

integer-random

Returns a integer pseudo random number between low (inclusive) and high (inclusive).

make-random-number-generator

Return a new random number generator of class class' using seed' as
the initial seed.

normal-random

Returns a normally distributed double-float pseudo random number
with using 'mean' and 'standard-...

normal-random*

Gets a single value sampled from the normal distribution with mean mean&#39; and<br> standard devation ...

produce-random-bit-file
rand

Simple standin for Common Lisp random function. [[?? remove, just type more]]

random-boolean

Returns T with probability given. Defaults to 0.5d0.

random-element

Returns a element selected from sequence uniformly at random. Start and end can be supplied to se...

random-range

Returns a pseudo random number between low (inclusive) and high (exclusive or inclusive depending...

random-range-inclusive

Returns a pseudo random number between low and high (both inclusive). If low and high are both in...

random-sample-with-range
sample-sequence

Returns a sub-sequence of seq with probability pr that each element of seq will be included...

select-sample

Returns a bit vector of size total-size with exactly sample-size
bits set to 1. The one bits are ...

uniform-random

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. Called
when the generator is created and whe...

next-element

Returns the next pseudo random number from a random number
generator (using the generator as outp...

random-seed

Returns the original random seed of the generator.

shuffle-elements!

Destructively rearrange the elements of a container by performing 'times' swaps. If times is not ...