uniform: The Uniform Distribution

Description Usage Arguments Details Note Author(s) See Also Examples

Description

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

1
2
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.

Note

Random number generation implemented with the cuRAND library.

Author(s)

Nathan Morris

See Also

runif

Examples

1
myRndNums = grunif(10)

gmatrix documentation built on May 29, 2017, 2:20 p.m.