sample

open override fun sample(random: Random): Double(source)

Draws a single random value from this Nakagami distribution.

Samples from Gamma(mu, rate = mu/omega) and returns the square root, exploiting the relationship X = sqrt(Y) where Y ~ Gamma(mu, mu/omega).

Return

a random non-negative value drawn from this distribution.

Parameters

random

the source of randomness.