Method

NumCosmoMathMatrixfill_rand_cov

Declaration [src]

void
ncm_matrix_fill_rand_cov (
  NcmMatrix* cm,
  const gdouble sigma_min,
  const gdouble sigma_max,
  const gdouble cor_level,
  NcmRNG* rng
)

Description [src]

Overwrite cm with a random covariance matrix, the parameter cor_level controls the correlation between entries the lower cor_level more correlated the entries are.

Parameters

sigma_min

Type: const gdouble

Mininum standard deviation.

sigma_max

Type: const gdouble

Maximum standard deviation.

cor_level

Type: const gdouble

Correlation level parameter.

rng

Type: NcmRNG

A NcmRNG.

The data is owned by the caller of the method.