Class

NumCosmoMathMSetTransKern

Description [src]

abstract class NumCosmoMath.MSetTransKern : GObject.Object
{
  /* No available fields */
}

Abstract Class for a transition kernel and prior.

This object defines the abstract class for a transition kernel and prior. It serves as the base class for all transition kernels and priors, with two main purposes:

  • To define the interface for all transition kernels for use in the NcmFitMCMC object.
  • To define the interface for all priors, generating random parameter vectors with multivariate parameters.

Notably, it acts as a prior sampler for NcmFitESMCMC, generating the initial population’s first set of random parameter vectors.

Ancestors

Functions

ncm_mset_trans_kern_clear

If tkern is not NULL, unrefs it and sets tkern to NULL.

Instance methods

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.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 NumCosmoMathMSetTransKernClass {
  void (* set_mset) (
    NcmMSetTransKern* tkern,
    NcmMSet* mset
  );
  void (* generate) (
    NcmMSetTransKern* tkern,
    NcmVector* theta,
    NcmVector* thetastar,
    NcmRNG* rng
  );
  gdouble (* pdf) (
    NcmMSetTransKern* tkern,
    NcmVector* theta,
    NcmVector* thetastar
  );
  void (* reset) (
    NcmMSetTransKern* tkern
  );
  const gchar* (* get_name) (
    NcmMSetTransKern* tkern
  );
  
}

No description available.

Class members
set_mset: void (* set_mset) ( NcmMSetTransKern* tkern, NcmMSet* mset )

No description available.

generate: void (* generate) ( NcmMSetTransKern* tkern, NcmVector* theta, NcmVector* thetastar, NcmRNG* rng )

No description available.

pdf: gdouble (* pdf) ( NcmMSetTransKern* tkern, NcmVector* theta, NcmVector* thetastar )

No description available.

reset: void (* reset) ( NcmMSetTransKern* tkern )

No description available.

get_name: const gchar* (* get_name) ( NcmMSetTransKern* tkern )

No description available.

Virtual methods

NumCosmoMath.MSetTransKernClass.generate

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

NumCosmoMath.MSetTransKernClass.get_name
No description available.

NumCosmoMath.MSetTransKernClass.pdf

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

NumCosmoMath.MSetTransKernClass.reset

Resets the transition kernel.

NumCosmoMath.MSetTransKernClass.set_mset

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