TITLE(Uniform @@ The Uniform Distribution)
USAGE(
dunif(x, min=0, max=1)
punif(q, min=0, max=1)
qunif(p, min=0, max=1)
runif(n, min=0, max=1)
)
ALIAS(dunif)
ALIAS(punif)
ALIAS(qunif)
ALIAS(runif)
DESCRIPTION(
These functions provide information about the uniform distribution
on the interval from LANG(min) to LANG(max).  LANG(dunif) gives the
density, LANG(punif) gives the distribution function LANG(qunif)
gives the quantile function and LANG(runif) generates random
deviates.
PARA
If LANG(min) or LANG(max) are not specified they assume the default
values of LANG(0) and LANG(1) respectively.
PARA
The uniform distribution has density
DEQN(
f(x) = OVER(1 @@ max-min)
@@
f(x) = 1/(max-min)
)
for EQN(min LE x LE max).
)
SEEALSO(
LANG(LINK(.Random.seed)), LANG(LINK(rnorm)), LDOTS.
)
EXAMPLES(
var(runif(10000))#- ~ = 1/12 = .8333
)
KEYWORD(distribution)
