Method
NumCosmoMathRNGmultinomial
Declaration [src]
void
ncm_rng_multinomial (
NcmRNG* rng,
gsize K,
guint N,
const gdouble* p,
guint* n
)
Description [src]
This function fills the array n with K elements using a multinomial distribution
defined by the array p.
Parameters
K-
Type:
gsizeNumber of possible outcomes.
N-
Type:
guintNumber of trials.
p-
Type: An array of
doubleArray of probabilities.
The length of the array is specified in the Kargument.The data is owned by the caller of the method. n-
Type: An array of
guintArray of counts.
The length of the array is specified in the Kargument.The data is owned by the caller of the method.