Top | ![]() |
![]() |
![]() |
![]() |
Functions
NcmFitESMCMC * | ncm_fit_esmcmc_new () |
NcmFitESMCMC * | ncm_fit_esmcmc_new_funcs_array () |
void | ncm_fit_esmcmc_free () |
void | ncm_fit_esmcmc_clear () |
void | ncm_fit_esmcmc_set_data_file () |
void | ncm_fit_esmcmc_set_sampler () |
void | ncm_fit_esmcmc_set_mtype () |
void | ncm_fit_esmcmc_set_nthreads () |
void | ncm_fit_esmcmc_set_rng () |
gdouble | ncm_fit_esmcmc_get_accept_ratio () |
gdouble | ncm_fit_esmcmc_get_offboard_ratio () |
void | ncm_fit_esmcmc_start_run () |
void | ncm_fit_esmcmc_end_run () |
void | ncm_fit_esmcmc_reset () |
void | ncm_fit_esmcmc_run () |
void | ncm_fit_esmcmc_run_lre () |
void | ncm_fit_esmcmc_mean_covar () |
NcmMSetCatalog * | ncm_fit_esmcmc_get_catalog () |
gboolean | ncm_fit_esmcmc_validate () |
Properties
gchar * | data-file | Read / Write |
NcmFit * | fit | Read / Write / Construct Only |
NcmObjArray * | functions-array | Read / Write / Construct Only |
NcmFitRunMsgs | mtype | Read / Write |
guint | nthreads | Read / Write |
gint | nwalkers | Read / Write / Construct Only |
NcmMSetTransKern * | sampler | Read / Write / Construct |
NcmFitESMCMCWalker * | walker | Read / Write / Construct Only |
Functions
ncm_fit_esmcmc_new ()
NcmFitESMCMC * ncm_fit_esmcmc_new (NcmFit *fit
,gint nwalkers
,NcmMSetTransKern *sampler
,NcmFitESMCMCWalker *walker
,NcmFitRunMsgs mtype
);
FIXME
Parameters
fit |
a NcmFit |
|
nwalkers |
number of walkers |
|
sampler |
inital points sampler NcmMSetTransKern |
|
walker |
[allow-none] | |
mtype |
FIXME |
ncm_fit_esmcmc_new_funcs_array ()
NcmFitESMCMC * ncm_fit_esmcmc_new_funcs_array (NcmFit *fit
,gint nwalkers
,NcmMSetTransKern *sampler
,NcmFitESMCMCWalker *walker
,NcmFitRunMsgs mtype
,NcmObjArray *funcs_array
);
FIXME
Parameters
fit |
a NcmFit |
|
nwalkers |
number of walkers |
|
sampler |
inital points sampler NcmMSetTransKern |
|
walker |
[allow-none] | |
mtype |
FIXME |
|
funcs_array |
a NcmObjArray of scalar functions to include in the catalog. |
ncm_fit_esmcmc_set_data_file ()
void ncm_fit_esmcmc_set_data_file (NcmFitESMCMC *esmcmc
,const gchar *filename
);
FIXME
ncm_fit_esmcmc_set_sampler ()
void ncm_fit_esmcmc_set_sampler (NcmFitESMCMC *esmcmc
,NcmMSetTransKern *sampler
);
ncm_fit_esmcmc_set_mtype ()
void ncm_fit_esmcmc_set_mtype (NcmFitESMCMC *esmcmc
,NcmFitRunMsgs mtype
);
FIXME
ncm_fit_esmcmc_set_nthreads ()
void ncm_fit_esmcmc_set_nthreads (NcmFitESMCMC *esmcmc
,guint nthreads
);
If nthreads
is larger than nwalkers / 2, it will be set to
nwalkers / 2.
ncm_fit_esmcmc_get_accept_ratio ()
gdouble
ncm_fit_esmcmc_get_accept_ratio (NcmFitESMCMC *esmcmc
);
FIXME
ncm_fit_esmcmc_get_offboard_ratio ()
gdouble
ncm_fit_esmcmc_get_offboard_ratio (NcmFitESMCMC *esmcmc
);
FIXME
ncm_fit_esmcmc_run ()
void ncm_fit_esmcmc_run (NcmFitESMCMC *esmcmc
,guint n
);
Runs the 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_esmcmc_run_lre ()
void ncm_fit_esmcmc_run_lre (NcmFitESMCMC *esmcmc
,guint prerun
,gdouble lre
);
FIXME
ncm_fit_esmcmc_get_catalog ()
NcmMSetCatalog *
ncm_fit_esmcmc_get_catalog (NcmFitESMCMC *esmcmc
);
Gets the generated catalog of esmcmc
.
ncm_fit_esmcmc_validate ()
gboolean ncm_fit_esmcmc_validate (NcmFitESMCMC *esmcmc
,gulong pi
,gulong pf
);
Recalculates the value of $-2\ln(L)$ and compares with the values found in the catalog. This function is particularly useful to check if any problem occured during a multithread evaluation of the likelihood.
Property Details
The “functions-array”
property
“functions-array” NcmObjArray *
Functions array.
Flags: Read / Write / Construct Only
The “mtype”
property
“mtype” NcmFitRunMsgs
Run messages type.
Flags: Read / Write
Default value: NCM_FIT_RUN_MSGS_SIMPLE
The “nthreads”
property
“nthreads” guint
Number of threads to run.
Flags: Read / Write
Default value: 0
The “nwalkers”
property
“nwalkers” gint
Number of walkers.
Flags: Read / Write / Construct Only
Allowed values: >= 1
Default value: 1
The “sampler”
property
“sampler” NcmMSetTransKern *
Initial points sampler.
Flags: Read / Write / Construct
The “walker”
property
“walker” NcmFitESMCMCWalker *
Walker object.
Flags: Read / Write / Construct Only