NcmFitMCBS

NcmFitMCBS — Monte Carlo and bootstrap analysis.

Stability Level

Unstable, unless otherwise indicated

Functions

Properties

char * filename Read / Write
NcmFit * fit Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── NcmFitMCBS

Includes

#include <numcosmo/math/ncm_fit_mcbs.h>

Description

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.

Functions

ncm_fit_mcbs_new ()

NcmFitMCBS *
ncm_fit_mcbs_new (NcmFit *fit);

Creates a new NcmFitMCBS object.

Parameters

fit

a NcmFit

 

Returns

a new NcmFitMCBS object.

[transfer full]


ncm_fit_mcbs_free ()

void
ncm_fit_mcbs_free (NcmFitMCBS *mcbs);

Decreases the reference count of mcbs by one.

Parameters

mcbs

a NcmFitMCBS

 

ncm_fit_mcbs_clear ()

void
ncm_fit_mcbs_clear (NcmFitMCBS **mcbs);

If *mcbs is not NULL, decreases its reference count by one and sets *mcbs to NULL.

Parameters

mcbs

a NcmFitMCBS

 

ncm_fit_mcbs_set_filename ()

void
ncm_fit_mcbs_set_filename (NcmFitMCBS *mcbs,
                           const gchar *filename);

Sets the filename of the data to be used in the analysis.

Parameters

mcbs

a NcmFitMCBS

 

filename

a filename

 

ncm_fit_mcbs_set_rng ()

void
ncm_fit_mcbs_set_rng (NcmFitMCBS *mcbs,
                      NcmRNG *rng);

Sets the random number generator to be used in the analysis.

Parameters

mcbs

a NcmFitMCBS

 

rng

a NcmRNG

 

ncm_fit_mcbs_run ()

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

Parameters

mcbs

a NcmFitMCBS

 

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

a NcmFitMCResampleType

 

mtype

a NcmFitRunMsgs

 

bsmt

number of threads to be used in the bootstrap analysis

 

ncm_fit_mcbs_get_catalog ()

NcmMSetCatalog *
ncm_fit_mcbs_get_catalog (NcmFitMCBS *mcbs);

Gets the generated catalog of mcbs .

Parameters

mcbs

a NcmFitMCBS

 

Returns

the generated catalog.

[transfer full]

Types and Values

NCM_TYPE_FIT_MCBS

#define NCM_TYPE_FIT_MCBS (ncm_fit_mcbs_get_type ())

NcmFitMCBS

typedef struct _NcmFitMCBS NcmFitMCBS;

Property Details

The “filename” property

  “filename”                 char *

Data filename.

Owner: NcmFitMCBS

Flags: Read / Write

Default value: NULL


The “fit” property

  “fit”                      NcmFit *

Fit object.

Owner: NcmFitMCBS

Flags: Read / Write / Construct Only