(abs-gauss mean variance)
Returns the absolute value of a single sample from a Gaussian distribution with the given mean and variance
Returns the absolute value of a single sample from a Gaussian distribution with the given mean and variance
(choice & items)
Uniformly chooses one of the arguments
Uniformly chooses one of the arguments
(gauss mean variance)
Samples a single value from a Gaussian distribution with the given mean and variance
Samples a single value from a Gaussian distribution with the given mean and variance
(gauss-range mean variance)
Returns a sequence of integers from zero to a value sampled from a Gaussian distribution with the given mean and variance
Returns a sequence of integers from zero to a value sampled from a Gaussian distribution with the given mean and variance
(odds chance)
Returns true with probability 'chance', where change is between 0 and 1.0
Returns true with probability 'chance', where change is between 0 and 1.0
(pareto-sample scale shape)
Draws a single sample from a ParetoDistribution with the given scale and shape.
Draws a single sample from a ParetoDistribution with the given scale and shape.
(pareto-sampler scale shape)
Returns a function to draw values from a ParetoDistribution with the given scale and shape.
Returns a function to draw values from a ParetoDistribution with the given scale and shape.
(random-point-in-circle x y radius)
Picks a random point in a circle with a given center and radius
Picks a random point in a circle with a given center and radius
(repeatable-shuffle items)
A version of shuffle that uses Processing's random fn to ensure that the same random seed is used.
A version of shuffle that uses Processing's random fn to ensure that the same random seed is used.
(simple-triangular b)
Like triangular, but assumes a = 0 and b = c
Like triangular, but assumes a = 0 and b = c
(triangular lower mode upper)
Returns a single sample from a Triangular distribution
Returns a single sample from a Triangular distribution
(weighted-choice & items-and-weights)
Given a sequence of alternating item and weight arguments, chooses one of the items with a probability equal to the weight. Each weight should be between 0.0 and 1.0, and all weights should sum to 1.0.
Given a sequence of alternating item and weight arguments, chooses one of the items with a probability equal to the weight. Each weight should be between 0.0 and 1.0, and all weights should sum to 1.0.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close