Random Patterns

pbeta

Random values that follow a Eulerian Beta Distribution.

pbeta

ArgumentDescriptionDefault
loLower boundary of values.0
hiUpper boundary of values.1
prob1The probability that a value will occur near lo.1
prob2The probability that a value will occur near hi.1
lengthNumber of values produced.infinity

pbrown

Returns a stream that behaves like a brownian motion.

pbrown

ArgumentDescriptionDefault
loLower boundary of values.0
hiUpper boundary of values.1
stepMaximum change per step.0.125
lengthNumber of values produced.infinity

pcauchy

Random values that follow a Cauchy Distribution.

pcauchy

ArgumentDescriptionDefault
meanThe mean of the distribution.0
spreadThe horizontal dispersion of the random values. The distribution is unbounded.1
lengthNumber of values produced.infinity

pexprand

Random values that follow a Exponential Distribution.

NOTE: lo and hi should both be positive or negative (their range should not cross 0).

pexprand

ArgumentDescriptionDefault
loLower boundary of values.0.0001
hiUpper boundary of values.1
lengthNumber of values produced.infinity

pgauss

This pattern uses the Box-Muller transform to generate a gaussian distribution from uniformly distributed values.

pgauss

ArgumentDescriptionDefault
meanThe mean of the distribution.0
devThe spread of values around the mean (standard deviation).1
lengthNumber of values produced.infinity

pgbrown

Returns an iterator that behaves like a geometric brownian motion.

pgbrown

ArgumentDescriptionDefault
loLower boundary of values.0
hiUpper boundary of values.1
stepMaximum multiplication factor per step (omega).0.125
lengthNumber of values produced.infinity

phprand

Random values that tend toward hi.

phprand

ArgumentDescriptionDefault
loLower boundary of values.0
hiUpper boundary of values.1
lengthNumber of values produced.infinity

plprand

Random values that tend toward lo.

plprand

ArgumentDescriptionDefault
loLower boundary of values.0
hiUpper boundary of values.1
lengthNumber of values produced.infinity

pmeanrand

Random values that tend toward ((lo + hi) / 2).

pmeanrand

ArgumentDescriptionDefault
loLower boundary of values.0
hiUpper boundary of values.1
lengthNumber of values produced.infinity

ppoisson

Random values that follow a Poisson Distribution (positive integer values).

ppoisson

ArgumentDescriptionDefault
meanThe mean of the distribution.1
lengthNumber of values produced.infinity

pwhite

Random values with uniform distribution.

pwhite

ArgumentDescriptionDefault
loLower boundary of values.0
hiUpper boundary of values.1
lengthNumber of values produced.infinity

Powered by Doctave