Method

NumCosmoMathRNGgaussian_gen

Declaration [src]

gdouble
ncm_rng_gaussian_gen (
  NcmRNG* rng,
  const gdouble mu,
  const gdouble sigma
)

Description [src]

This function returns a random number drawn from the Gaussian distribution, with mean mu and standard deviation sigma.

Parameters

mu

Type: const gdouble

Mean.

sigma

Type: const gdouble

Standard deviation.

Return value

Type: gdouble

A random number from the Gaussian distribution.