Class
NumCosmoMathFitMCMC
Description [src]
final class NumCosmoMath.FitMCMC : GObject.Object
{
/* No available fields */
}
Markov Chain Monte Carlo analysis.
Markov Chain Monte Carlo (MCMC) analysis is a method for sampling the posterior
probability distribution of a set of parameters. It relies on the
Metropolis–Hastings algorithm. The transition kernel utilized in this implementation
is specified by the NcmMSetTransKern object.
Constructors
ncm_fit_mcmc_new
Creates a new NcmFitMCMC object that will use the tkern transition kernel to
generate the MCMC proposals.
Functions
ncm_fit_mcmc_clear
If mcmc is not NULL, decrement the reference count of mcmc and sets mcmc to
NULL.
Instance methods
ncm_fit_mcmc_end_run
Ends the current run, frees the memory used by the Markov Chain Monte Carlo and syncs the catalog.
ncm_fit_mcmc_run
Runs the Markov Chain Monte Carlo until it reaches the n-th realization. Note that
if the first_id is non-zero it will run n - first_id realizations.
ncm_fit_mcmc_run_lre
Runs the Markov Chain Monte Carlo until it reaches the n-th realization. It starts
by running prerun realizations and then it runs more realizations until the largest
relative error is less than lre.
ncm_fit_mcmc_set_data_file
Sets the data file to be used to save the Markov Chain Monte Carlo realizations catalog.
ncm_fit_mcmc_set_first_sample_id
Sets the first sample id to be used in the Markov Chain Monte Carlo.
ncm_fit_mcmc_set_nthreads
Sets the number of threads to be used during the Markov Chain Monte Carlo run.
ncm_fit_mcmc_set_rng
Sets the random number generator to be used during the Markov Chain Monte Carlo run.
ncm_fit_mcmc_set_trans_kern
Sets the transition kernel to be used during the Markov Chain Monte Carlo run.
ncm_fit_mcmc_start_run
Starts a new run, setup the Markov Chain Monte Carlo object and syncs the catalog.
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.