NcmFitESMCMCWalkerStretch

NcmFitESMCMCWalkerStretch — Ensemble sampler Markov Chain Monte Carlo walker - stretch move.

Stability Level

Stable, unless otherwise indicated

Functions

Properties

gboolean multi-stretch Read / Write / Construct
double scale Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── NcmFitESMCMCWalker
        ╰── NcmFitESMCMCWalkerStretch

Description

Implementing stretch move walker for NcmFitESMCMC (affine invariant).

Functions

ncm_fit_esmcmc_walker_stretch_new ()

NcmFitESMCMCWalkerStretch *
ncm_fit_esmcmc_walker_stretch_new (guint nwalkers,
                                   guint nparams);

Creates a new NcmFitESMCMCWalkerStretch to be used with nwalkers .

Parameters

nwalkers

number of walkers

 

nparams

number of parameters

 

Returns

a new NcmFitESMCMCWalkerStretch.

[transfer full]


ncm_fit_esmcmc_walker_stretch_set_scale ()

void
ncm_fit_esmcmc_walker_stretch_set_scale
                               (NcmFitESMCMCWalkerStretch *stretch,
                                const gdouble a);

Sets the value of the scale $a > 1$.

Parameters

stretch

a NcmFitESMCMCWalkerStretch

 

a

new scale $a > 1$

 

ncm_fit_esmcmc_walker_stretch_get_scale ()

gdouble
ncm_fit_esmcmc_walker_stretch_get_scale
                               (NcmFitESMCMCWalkerStretch *stretch);

Gets the value of the scale $a > 1$.

Parameters

Returns

current value of $a$.


ncm_fit_esmcmc_walker_stretch_set_box ()

void
ncm_fit_esmcmc_walker_stretch_set_box (NcmFitESMCMCWalkerStretch *stretch,
                                       guint n,
                                       const gdouble lb,
                                       const gdouble ub);

Sets box sampling for the n -th parameter using lb as lower bound and ub as upper bound.

Parameters

stretch

a NcmFitESMCMCWalkerStretch

 

n

parameter index

 

lb

lower bound

 

ub

upper bound

 

ncm_fit_esmcmc_walker_stretch_set_box_mset ()

void
ncm_fit_esmcmc_walker_stretch_set_box_mset
                               (NcmFitESMCMCWalkerStretch *stretch,
                                NcmMSet *mset);

Sets box sampling for the parameters using bounds from mset .

Parameters

stretch

a NcmFitESMCMCWalkerStretch

 

mset

a NcmMSet

 

ncm_fit_esmcmc_walker_stretch_multi ()

void
ncm_fit_esmcmc_walker_stretch_multi (NcmFitESMCMCWalkerStretch *stretch,
                                     gboolean multi);

Sets whether it should use multi-stretchs in a single step.

Parameters

stretch

a NcmFitESMCMCWalkerStretch

 

multi

a boolean

 

Types and Values

NCM_TYPE_FIT_ESMCMC_WALKER_STRETCH

#define NCM_TYPE_FIT_ESMCMC_WALKER_STRETCH (ncm_fit_esmcmc_walker_stretch_get_type ())

NcmFitESMCMCWalkerStretch

typedef struct _NcmFitESMCMCWalkerStretch NcmFitESMCMCWalkerStretch;

Property Details

The “multi-stretch” property

  “multi-stretch”            gboolean

Whether it should use multiple stretchs per step.

Owner: NcmFitESMCMCWalkerStretch

Flags: Read / Write / Construct

Default value: FALSE


The “scale” property

  “scale”                    double

Stretch scale a.

Owner: NcmFitESMCMCWalkerStretch

Flags: Read / Write / Construct

Allowed values: >= 1.1

Default value: 2