Skip to contents

f(x) = 2 m^m x^(2m-1) exp(-m x^2/Omega) / (Gamma(m) Omega^m); F(x) = P(m, m x^2/Omega). Density, distribution function, quantile and draws by inversion of the morie Philox uniforms (identical in the Python arm).

Usage

Nakagami(x = NULL, shape = NULL, scale = 1, p = NULL, n = 0, seed = 0)

Arguments

x

Evaluation points.

shape

Parameter (required).

scale

Parameter.

p

Probabilities for the quantile function.

n

Number of random draws.

seed

Philox seed.

Value

list(pdf, logpdf, cdf, quantile, random).

References

Nakagami, M. (1960). The m-distribution. In Statistical Methods in Radio Wave Propagation, 3-36.

Examples

Nakagami(0.5, shape = 2)$cdf
#> [1] 0.09020401