Method

NumCosmoMathRNGlaplace_gen

Declaration [src]

gdouble
ncm_rng_laplace_gen (
  NcmRNG* rng,
  const gdouble a
)

Description [src]

This function returns a random number drawn from the Laplace distribution with width a.

Parameters

a

Type: const gdouble

Width of the distribution.

Return value

Type: gdouble

A random number from the Laplace distribution.