These functions provide information about the uniform distribution on the interval from min to max. dunif gives the density and runif generates random deviates.
Usage
gdunif(x, min = 0, max = 1, log = FALSE, type = "d")
grunif(n, min = 0, max = 1, type = "d")
Arguments
x
vector of quantiles.
n
number of observations
min, max
lower and upper limits of the distribution
log
logical; if TRUE, probabilities/densities p are returned as log(p)
type
specify the type; may be "double", "single" (or short form "d" or "s")
Details
If min or max are not specified they assume the default values of 0 and 1 respectively. Works very similarly to the R stats functions.