Density, distribution function, quantile function and random generation for
Maxwell distribution with parameter scale
.
Usage
dmd(x, theta = 1, log = FALSE)
pmd(q, theta = 1, lower.tail = TRUE, log.p = FALSE)
qmd(p, theta = 1, lower.tail = TRUE)
rmd(n, theta = 1)
Arguments
- x, q
vector of quantiles.
- theta
a scale parameter.
- log, log.p
logical; if TRUE, probabilities p are given as log(p).
- lower.tail
logical; if TRUE (default), probabilities are \(P\left[ X\leq x\right]\), otherwise, \(P\left[ X>x\right] \).
- p
vector of probabilities.
- n
number of observations. If
length(n) > 1
, the length is taken to be the number required.
Value
dmd
gives the density, pmd
gives the distribution
function, qmd
gives the quantile function and rmd
generates
random deviates.
Details
Maxwell distribution with scale
parameter \(\theta\),
has density
$$f\left( x\right) =\frac{4}{\sqrt{\pi }}
\frac{1}{\theta ^{3/2}}x^{2}e^{-x^{2}/\theta },$$
where
$$0\leq x<\infty ,~~\theta >0.$$