point {BayesTools} | R Documentation |
Density, distribution function, quantile function and random generation for point distribution.
dpoint(x, location, log = FALSE) rpoint(n, location) ppoint(q, location, lower.tail = TRUE, log.p = FALSE) qpoint(p, location, lower.tail = TRUE, log.p = FALSE)
x, q |
vector or matrix of quantiles. |
location |
vector of locations. |
log, log.p |
logical; if |
n |
number of observations. |
lower.tail |
logical; if |
p |
vector of probabilities. |
dpoint
gives the density, ppoint
gives the
distribution function, qpoint
gives the quantile function,
and rpoint
generates random deviates.
# draw samples from a point distribution rpoint(10, location = 1)