NcmMSetTransKernGauss

NcmMSetTransKernGauss — A multivariate gaussian sampler.

Functions

Properties

NcmMatrix * cov Read / Write
guint length Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── NcmMSetTransKern
        ╰── NcmMSetTransKernGauss

Description

This object subclasses NcmMSetTransKern and implements a multivariate gaussian sampler.

Implementation of a multivariate Gaussian sampler, providing a straightforward method for generating random parameter vectors with multivariate parameters. This sampler generates vectors with a normal distribution. The covariance of parameters can be configured directly using ncm_mset_trans_kern_gauss_set_cov() or by specifying individual standard deviations as parameter scales, assuming zero correlation.

**Key Functionality:**

This implementation is particularly useful when a Gaussian sampling approach is required for generating random parameter vectors with multivariate parameters, offering flexibility in specifying covariance through direct settings or individual standard deviations.

Functions

ncm_mset_trans_kern_gauss_new ()

NcmMSetTransKernGauss *
ncm_mset_trans_kern_gauss_new (guint len);

New NcmMSetTransKern gauss for len multivariate gaussian.

Parameters

len

Number of variables

 

Returns

a new NcmMSetTransKernGauss.

[transfer full]


ncm_mset_trans_kern_gauss_set_size ()

void
ncm_mset_trans_kern_gauss_set_size (NcmMSetTransKernGauss *tkerng,
                                    guint len);

Sets size of NcmMSetTransKernGauss.

Parameters

tkerng

a NcmMSetTransKernGauss.

 

len

Number of variables.

 

ncm_mset_trans_kern_gauss_get_size ()

guint
ncm_mset_trans_kern_gauss_get_size (NcmMSetTransKernGauss *tkerng);

Gets size of NcmMSetTransKernGauss.

Parameters

tkerng

a NcmMSetTransKernGauss.

 

Returns

size of the gaussian multivariate.


ncm_mset_trans_kern_gauss_set_cov ()

void
ncm_mset_trans_kern_gauss_set_cov (NcmMSetTransKernGauss *tkerng,
                                   const NcmMatrix *cov);

Sets the covariance given by the NcmMatrix cov .

Parameters

tkerng

a NcmMSetTransKernGauss.

 

cov

a NcmMatrix.

 

ncm_mset_trans_kern_gauss_set_cov_variant ()

void
ncm_mset_trans_kern_gauss_set_cov_variant
                               (NcmMSetTransKernGauss *tkerng,
                                GVariant *cov);

Sets the covariance given by the GVariant cov .

Parameters

tkerng

a NcmMSetTransKernGauss.

 

cov

a GVariant.

 

ncm_mset_trans_kern_gauss_get_cov ()

NcmMatrix *
ncm_mset_trans_kern_gauss_get_cov (NcmMSetTransKernGauss *tkerng);

Gets the covariance.

Parameters

tkerng

a NcmMSetTransKernGauss.

 

Returns

the covariance.

[transfer full]


ncm_mset_trans_kern_gauss_set_cov_from_scale ()

void
ncm_mset_trans_kern_gauss_set_cov_from_scale
                               (NcmMSetTransKernGauss *tkerng);

Sets the covariance using the scale property of the parameters as standard deviation and zero correlation.

Parameters

tkerng

a NcmMSetTransKernGauss

 

ncm_mset_trans_kern_gauss_set_cov_from_rescale ()

void
ncm_mset_trans_kern_gauss_set_cov_from_rescale
                               (NcmMSetTransKernGauss *tkerng,
                                const gdouble epsilon);

Sets the covariance using the scale property of the parameters times epsilon as standard deviation and zero correlation.

Parameters

tkerng

a NcmMSetTransKernGauss

 

epsilon

the overall rescale

 

Types and Values

NCM_TYPE_MSET_TRANS_KERN_GAUSS

#define NCM_TYPE_MSET_TRANS_KERN_GAUSS (ncm_mset_trans_kern_gauss_get_type ())

NcmMSetTransKernGauss

typedef struct _NcmMSetTransKernGauss NcmMSetTransKernGauss;

Property Details

The “cov” property

  “cov”                      NcmMatrix *

covariance.

Owner: NcmMSetTransKernGauss

Flags: Read / Write


The “length” property

  “length”                   guint

length.

Owner: NcmMSetTransKernGauss

Flags: Read / Write / Construct

Default value: 0