Description Usage Arguments Value Author(s) Examples
Density function, distribution function, quantile function, random number generation function for the unit-maxwell distribution re-parametrized in terms of the mode.
1 2 3 4 5 6 7 |
x, q |
vector of positive quantiles. |
mu |
location parameter indicating the mode. |
log, log.p |
logical; If TRUE, probabilities p are given as log(p). |
lower.tail |
logical; If TRUE, (default), P(X ≤q x) are returned, otherwise P(X > x). |
p |
vector of probabilities. |
n |
number of observations. If |
dumaxwell
gives the density, pumaxwell
gives the distribution function,
qumaxwell
gives the quantile function and rumaxwell
generates random deviates.
Invalid arguments will return an error message.
André Felipe B. Menezes andrefelipemaringa@gmail.com
1 2 3 4 5 6 7 8 9 10 | set.seed(6969)
x <- rumaxwell(n = 1e4, mu = 0.5)
R <- range(x)
S <- seq(from = R[1], to = R[2], by = 0.01)
hist(x, prob = TRUE, main = 'unit-maxwell distribution')
lines(S, dumaxwell(x = S, mu = 0.5), col = 2)
plot(ecdf(x))
lines(S, pumaxwell(q = S, mu = 0.5), col = 2)
plot(quantile(x, probs = S), type = "l")
lines(qumaxwell(p = S, mu = 0.5), col = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.