Method

NumCosmoMathRNGrayleigh_gen

Declaration [src]

gdouble
ncm_rng_rayleigh_gen (
  NcmRNG* rng,
  const gdouble sigma
)

Description [src]

This function returns a random number drawn from the Rayleigh distribution with scale parameter sigma.

Parameters

sigma

Type: const gdouble

Scale parameter.

Return value

Type: gdouble

A random number from the Rayleigh distribution.