Difference between revisions of "Uniform distribution"

m (adding doc status category)
Line 1: Line 1:
= Function Uniform =
+
= Function Uniform(x, y) =
 
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
 
   
 
   
The Uniform distribution function.
+
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.
  
== Declaration ==
+
If you omit x and y, it returns a unit uniform between 0 and 1.
  
Uniform( min : numeric=0 ; max:numeric=1 ; integer:boolean=false ; over : ... optional atomic)
+
[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:
== 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)
 
  Uniform(1,100,Integer:True)
is a discrete distribution in which each of the integers 1,2,..,99,100 each have a 1% probability.
+
is a discrete distribution where each integer 1, 2, .., 99, 100 has an equal probability of 1%.
  
== The Over Parameter ==
+
Like most distributions, you may use the Over parameter to generate an array of independent distributions for each combination of indexes.  For example:
  
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.
  
Uniform( Over: I,J )
+
==== Declaration ====
  
returns an independent Uniform(0,1) distribution for each combination of values in indexes I and J.
+
Uniform( min : numeric=0 ; max:numeric=1 ; integer:boolean=false ; over : ... optional atomic)

Revision as of 02:20, 29 August 2007

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


You are not allowed to post comments.