These functions provide information about the uniform distribution on the interval from min to max.
dunifgives the probability density functionpunifgives the cumulative distribution function = integral of probability density functionqunifgives the quantile function = inverse cumulative distribution functionrunifgenerates random deviates
Usage
dunif(x, min = 0, max = 1, log = FALSE)punif(q, min = 0, max = 1, lower.tail = TRUE, log.p = FALSE)qunif(p, min = 0, max = 1, lower.tail = TRUE, log.p = FALSE)runif(n, min = 0, max = 1)
Arguments
|
|
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]. |