Uniform distribution
Function Uniform(x, y)
Returns a variable with a Uniform distribution between number x and y. For example,
Uniform(a, b)
is a continuous distribution in which all real numbers between a and b are equally probable.
If you omit x and y, it returns a unit uniform between 0 and 1.
[New to 4.0] If you set optional parameter Integer as true, it returns a discrete uniform distribution over the integers between a and b. For example:
Uniform(1,100,Integer:True)
is a discrete distribution where each integer 1, 2, .., 99, 100 has an equal probability of 1%.
Like most distributions, you may use the Over parameter to generate an array of 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.
Declaration
Uniform( min : numeric=0 ; max:numeric=1 ; integer:boolean=false ; over : ... optional atomic)
Comments
Enable comment auto-refresher