Uniform distribution

Revision as of 05:47, 24 January 2007 by Lchrisman (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function Uniform

The Uniform distribution function.

Declaration

Uniform( min : numeric=0 ; max:numeric=1 ; integer:boolean=false ; over : ... optional atomic)

Continuous Uniform Distribution

Used with no parameters, Uniform() represents a distribution in which all real values between 0 and 1 are equally likely. The usage

Uniform(a,b)

represents a continuous distribution in which all real-numbers between a and b are equally likely.

The Integer Uniform Distribution

Specifying the optional Integer parameter represents a distribution on the integers where each integer between (or including) the bounds are equally likely. For example:

Uniform(1,100,Integer:True)

is a discrete distribution in which each of the integers 1,2,..,99,100 each have a 1% probability.

The Over Parameter

Specifying one or more indexes for the Over parameter returns independent distributions for each combination of indexes. For example:

Uniform( Over: I,J )

returns an independent Uniform(0,1) distribution for each combination of values in indexes I and J.

Comments


You are not allowed to post comments.