Top |
NcmMSetTransKern * | ncm_mset_trans_kern_ref () |
void | ncm_mset_trans_kern_free () |
void | ncm_mset_trans_kern_clear () |
void | ncm_mset_trans_kern_set_mset () |
NcmMSet * | ncm_mset_trans_kern_peek_mset () |
void | ncm_mset_trans_kern_set_prior () |
void | ncm_mset_trans_kern_set_prior_from_mset () |
void | ncm_mset_trans_kern_generate () |
gdouble | ncm_mset_trans_kern_pdf () |
void | ncm_mset_trans_kern_prior_sample () |
gdouble | ncm_mset_trans_kern_prior_pdf () |
void | ncm_mset_trans_kern_reset () |
const gchar * | ncm_mset_trans_kern_get_name () |
GObject ╰── NcmMSetTransKern ├── NcmMSetTransKernCat ├── NcmMSetTransKernFlat ╰── NcmMSetTransKernGauss
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.
NcmMSetTransKern *
ncm_mset_trans_kern_ref (NcmMSetTransKern *tkern
);
Increases the reference count of tkern
.
void
ncm_mset_trans_kern_free (NcmMSetTransKern *tkern
);
Increases the reference count of tkern
.
void
ncm_mset_trans_kern_clear (NcmMSetTransKern **tkern
);
If *tkern
is not NULL
, unrefs it and sets *tkern
to NULL
.
void ncm_mset_trans_kern_set_mset (NcmMSetTransKern *tkern
,NcmMSet *mset
);
Sets the mset
as the internal set NcmMSet to be used by the transition kernel.
[virtual set_mset]
void ncm_mset_trans_kern_set_prior (NcmMSetTransKern *tkern
,NcmVector *theta
);
Sets the theta
as the prior mean. This allows the transition kernel to
be used as a prior sampler.
void
ncm_mset_trans_kern_set_prior_from_mset
(NcmMSetTransKern *tkern
);
As ncm_mset_trans_kern_set_prior()
but uses the values present in the
internal set NcmMSet.
void ncm_mset_trans_kern_generate (NcmMSetTransKern *tkern
,NcmVector *theta
,NcmVector *thetastar
,NcmRNG *rng
);
Generates a new point thetastar
from theta
using the transition kernel.
[virtual generate]
gdouble ncm_mset_trans_kern_pdf (NcmMSetTransKern *tkern
,NcmVector *theta
,NcmVector *thetastar
);
Computes the value of the kernel at (theta
, thetastar
).
[virtual pdf]
void ncm_mset_trans_kern_prior_sample (NcmMSetTransKern *tkern
,NcmVector *thetastar
,NcmRNG *rng
);
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.
gdouble ncm_mset_trans_kern_prior_pdf (NcmMSetTransKern *tkern
,NcmVector *thetastar
);
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.
void
ncm_mset_trans_kern_reset (NcmMSetTransKern *tkern
);
Resets the transition kernel.
[virtual reset]
const gchar *
ncm_mset_trans_kern_get_name (NcmMSetTransKern *tkern
);
[virtual get_name]
“mset”
property“mset” NcmMSet *
NcmMSet.
Owner: NcmMSetTransKern
Flags: Read / Write / Construct Only