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: NcmMatrix

Cholesky decomposition of the kernel covariance.

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

Type: const gdouble

Kernel bandwidth.

mu

Type: NcmVector

Kernel location vector.

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

Type: NcmVector

Output vector.

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.