Method

NumCosmoMathStatsDistsample

Declaration [src]

void
ncm_stats_dist_sample (
  NcmStatsDist* sd,
  NcmVector* x,
  NcmRNG* rng
)

Description [src]

Using the pseudo-random number generator rng generates a point from the distribution and copy it to x.

Parameters

x

Type: NcmVector

A NcmVector.

The data is owned by the caller of the method.
rng

Type: NcmRNG

A NcmRNG.

The data is owned by the caller of the method.