These functions provide information about the uniform distribution
on the interval from
dunif gives the
punif gives the distribution function
gives the quantile function and
runif generates random
1 2 3 4
vector of quantiles.
vector of probabilities.
number of observations. If
lower and upper limits of the distribution. Must be finite.
logical; if TRUE, probabilities p are given as log(p).
logical; if TRUE (default), probabilities are P[X ≤ x], otherwise, P[X > x].
max are not specified they assume the default
The uniform distribution has density
f(x) = 1/(max-min)
for min ≤ x ≤ max.
For the case of u := min == max, the limit case of
X == u is assumed, although there is no density in
that case and
dunif will return
NaN (the error condition).
runif will not generate either of the extreme values unless
max = min or
max-min is small compared to
and in particular not for the default arguments.
dunif gives the density,
punif gives the distribution function,
qunif gives the quantile function, and
runif generates random deviates.
The length of the result is determined by
runif, and is the maximum of the lengths of the
numerical arguments for the other functions.
The numerical arguments other than
n are recycled to the
length of the result. Only the first elements of the logical
arguments are used.
The characteristics of output from pseudo-random number generators
(such as precision and periodicity) vary widely. See
.Random.seed for more information on R's random number
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
RNG about random number generation in R.
Distributions for other standard distributions.
1 2 3 4 5 6 7