Method
NumCosmoMathStatsDistKernelsample
Declaration [src]
void
ncm_stats_dist_kernel_sample (
NcmStatsDistKernel* sdk,
NcmMatrix* cov_decomp,
const gdouble href,
NcmVector* mu,
NcmVector* y,
NcmRNG* rng
)
Description [src]
Generates a random vector from the kernel distribution
using the covariance cov_decomp, bandwidth href and
location vector mu. The result is stored in y.
Parameters
cov_decomp-
Type:
NcmMatrixCholesky decomposition of the kernel covariance.
The data is owned by the caller of the method. href-
Type:
const gdoubleKernel bandwidth.
mu-
Type:
NcmVectorKernel location vector.
The data is owned by the caller of the method. y-
Type:
NcmVectorOutput vector.
The data is owned by the caller of the method. rng-
Type:
NcmRNGA
NcmRNG.The data is owned by the caller of the method.