Title: | Functions for the Nakagami Distribution |
---|---|
Description: | Density, distribution function, quantile function and random generation for the Nakagami distribution of Nakagami (1960) <doi:10.1016/B978-0-08-009306-2.50005-4>. |
Authors: | Jonas Moss [aut, cre] |
Maintainer: | Jonas Moss <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.0 |
Built: | 2025-01-31 02:53:15 UTC |
Source: | https://github.com/jonasmoss/nakagami |
Density, distribution function, quantile function and random generation for
the Nakagami distribution with parameters shape
and scale
.
dnaka(x, shape, scale, log = FALSE) pnaka(q, shape, scale, lower.tail = TRUE, log.p = FALSE) qnaka(p, shape, scale, lower.tail = TRUE, log.p = FALSE) rnaka(n, shape, scale)
dnaka(x, shape, scale, log = FALSE) pnaka(q, shape, scale, lower.tail = TRUE, log.p = FALSE) qnaka(p, shape, scale, lower.tail = TRUE, log.p = FALSE) rnaka(n, shape, scale)
x , q
|
vector of quantiles. |
shape |
vector of positive shape parameters. |
scale |
vector of positive scale parameters. |
log , log.p
|
logical; if |
lower.tail |
logical; if |
p |
vector of probabilities. |
n |
number of observations. If |
The Nakagami distribution (Nakagami, 1960) with shape and scale
has density
for
,
and
.
If is Gamma distributed with
and
then
is Nakagami distributed
with
and
.
Sometimes, specifically in radio channels modeling, the parameter is
constrained to
, but the density is defined for any
(Kolar et al., 2004).
dnaka
gives the density, pnaka
gives the distribution function,
qnaka
gives the quantile function and rnaka
generates random deviates.
The length of the result is determined by n
for rnaka
, and is the
maximum of the lengths of the numerical arguments for the other functions.
The numerical arguments other than n
are recycled to the length of the
result.
Nakagami, N. 1960. "The M-Distribution, a General Formula of Intensity of Rapid Fading." In Statistical Methods in Radio Wave Propagation: Proceedings of a Symposium Held at the University of California, edited by William C. Hoffman, 3-36. Permagon Press.
Kolar, R., Jirik, R., & Jan, J. (2004). Estimator comparison of the Nakagami-m parameter and its application in echocardiography. Radioengineering, 13(1), 8-12.
The Gamma distribution is closed related to the Nakgami distribution.
Suppress object length incompatibility warnings
suppress_olw(expr)
suppress_olw(expr)
expr |
expression to be evaluated. |