Method

NumCosmoMathRNGbeta_gen

Declaration [src]

gdouble
ncm_rng_beta_gen (
  NcmRNG* rng,
  const gdouble a,
  const gdouble b
)

Description [src]

This function returns a random number drawn from the beta distribution with shape parameters a and b. The shape parameters must be positive.

Parameters

a

Type: const gdouble

Shape parameter.

b

Type: const gdouble

Shape parameter.

Return value

Type: gdouble

A random number from the beta distribution.