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.
Instance methods
ncm_mset_trans_kern_generate
Generates a new point thetastar from theta using the transition kernel.
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_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.
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.set_mset
Sets the mset as the internal set NcmMSet to be used by the transition kernel.