Top |
NcmFitMCBS * | ncm_fit_mcbs_new () |
void | ncm_fit_mcbs_free () |
void | ncm_fit_mcbs_clear () |
void | ncm_fit_mcbs_set_filename () |
void | ncm_fit_mcbs_set_rng () |
void | ncm_fit_mcbs_run () |
NcmMSetCatalog * | ncm_fit_mcbs_get_catalog () |
This class implements the Monte Carlo and bootstrap analysis. It performs a Monte Carlo analysis where for each sample of the likelihood function, a bootstrap analysis is performed. The results are stored in a NcmMSetCatalog.
The main objective of this class is to provide a way to estimate the accuracy of the bootstrap analysis.
void
ncm_fit_mcbs_free (NcmFitMCBS *mcbs
);
Decreases the reference count of mcbs
by one.
void
ncm_fit_mcbs_clear (NcmFitMCBS **mcbs
);
If *mcbs
is not NULL
, decreases its reference count by one and
sets *mcbs
to NULL
.
void ncm_fit_mcbs_set_filename (NcmFitMCBS *mcbs
,const gchar *filename
);
Sets the filename of the data to be used in the analysis.
void ncm_fit_mcbs_set_rng (NcmFitMCBS *mcbs
,NcmRNG *rng
);
Sets the random number generator to be used in the analysis.
void ncm_fit_mcbs_run (NcmFitMCBS *mcbs
,NcmMSet *fiduc
,guint ni
,guint nf
,guint nbstraps
,NcmFitMCResampleType rtype
,NcmFitRunMsgs mtype
,guint bsmt
);
Runs the Monte Carlo and bootstrap analysis.
The results are stored in the catalog of mcbs
.
The catalog is cleared before the analysis.
WARNING not working correctly with bsmt > 0 FIXME
mcbs |
||
fiduc |
a NcmMSet |
|
ni |
index of the first sample to be used in the analysis |
|
nf |
index of the last sample to be used in the analysis |
|
nbstraps |
number of bootstrap samples |
|
rtype |
||
mtype |
||
bsmt |
number of threads to be used in the bootstrap analysis |
NcmMSetCatalog *
ncm_fit_mcbs_get_catalog (NcmFitMCBS *mcbs
);
Gets the generated catalog of mcbs
.
“filename”
property “filename” char *
Data filename.
Owner: NcmFitMCBS
Flags: Read / Write
Default value: NULL
“fit”
property“fit” NcmFit *
Fit object.
Owner: NcmFitMCBS
Flags: Read / Write / Construct Only