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.

Ancestors

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_free

Decrement the reference count of mcmc and frees the memory used by it.

ncm_fit_mcmc_get_accept_ratio

Gets the acceptance ratio of the Markov Chain Monte Carlo run.

ncm_fit_mcmc_get_catalog

Gets the generated catalog of mcmc.

ncm_fit_mcmc_mean_covar

Computes the mean and covariance of the generated catalog.

ncm_fit_mcmc_reset

Resets the Markov Chain Monte Carlo object and 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_fiducial
No description available.

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_mtype

Sets the messages type to be used during the Markov Chain Monte Carlo run.

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.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmoMath.FitMCMC:fit
No description available.

NumCosmoMath.FitMCMC:mtype
No description available.

NumCosmoMath.FitMCMC:nthreads
No description available.

NumCosmoMath.FitMCMC:sampler
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 NumCosmoMathFitMCMCClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.