Class

NumCosmoMathMSetTransKernGauss

Description [src]

final class NumCosmoMath.MSetTransKernGauss : NumCosmoMath.MSetTransKern
{
  /* No available fields */
}

A multivariate gaussian sampler.

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:

  • Generates random parameter vectors with multivariate parameters.
  • Utilizes a multivariate Gaussian distribution for sampling.
  • Allows direct setting of covariance using ncm_mset_trans_kern_gauss_set_cov().
  • Supports alternative methods:
  • Using ncm_mset_trans_kern_gauss_set_cov_from_scale() sets covariance using the scale property of parameters as standard deviation with zero correlation.
  • Using ncm_mset_trans_kern_gauss_set_cov_from_rescale() sets covariance using the scale property of parameters times epsilon as standard deviation with zero correlation.

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.

Constructors

ncm_mset_trans_kern_gauss_new

New NcmMSetTransKern gauss for len multivariate gaussian.

Instance methods

ncm_mset_trans_kern_gauss_get_cov

Gets the covariance.

ncm_mset_trans_kern_gauss_get_size

Gets size of NcmMSetTransKernGauss.

ncm_mset_trans_kern_gauss_set_cov

Sets the covariance given by the NcmMatrix cov.

ncm_mset_trans_kern_gauss_set_cov_from_rescale

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

ncm_mset_trans_kern_gauss_set_cov_from_scale

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

ncm_mset_trans_kern_gauss_set_cov_variant

Sets the covariance given by the GVariant cov.

ncm_mset_trans_kern_gauss_set_size

Sets size of NcmMSetTransKernGauss.

Methods inherited from NcmMSetTransKern (12)
ncm_mset_trans_kern_free

Increases the reference count of tkern.

ncm_mset_trans_kern_generate

Generates a new point thetastar from theta using the transition kernel.

ncm_mset_trans_kern_get_name
No description available.

ncm_mset_trans_kern_pdf

Computes the value of the kernel at (theta, thetastar).

ncm_mset_trans_kern_peek_mset
No description available.

ncm_mset_trans_kern_prior_pdf

Computes the value of the kernel at (ktern->theta, thetastar). To use as a prior one must call the ncm_mset_trans_kern_set_prior() or ncm_mset_trans_kern_set_prior_from_mset() first.

ncm_mset_trans_kern_prior_sample

Sample from the transition kernel using it as a prior. To use as a prior one must call one of the functions ncm_mset_trans_kern_set_prior_* first.

ncm_mset_trans_kern_ref

Increases the reference count of tkern.

ncm_mset_trans_kern_reset

Resets the transition kernel.

ncm_mset_trans_kern_set_mset

Sets the mset as the internal set NcmMSet to be used by the transition kernel.

ncm_mset_trans_kern_set_prior

Sets the theta as the prior mean. This allows the transition kernel to be used as a prior sampler.

ncm_mset_trans_kern_set_prior_from_mset

As ncm_mset_trans_kern_set_prior() but uses the values present in the internal set NcmMSet.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.MSetTransKernGauss:cov
No description available.

NumCosmoMath.MSetTransKernGauss:length
No description available.

Properties inherited from NcmMSetTransKern (1)
NumCosmoMath.MSetTransKern:mset
No description available.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct NumCosmoMathMSetTransKernGaussClass {
  NcmMSetTransKernClass parent_class;
  
}

No description available.

Class members
parent_class: NcmMSetTransKernClass

No description available.