NcmFitESMCMCWalkerAPS

NcmFitESMCMCWalkerAPS — Ensemble sampler Markov Chain Monte Carlo walker - aps move.

Properties

gdouble rand-walk-prob Read / Write / Construct
gdouble rand-walk-scale Read / Write / Construct
gboolean use-interp Read / Write / Construct

Object Hierarchy

    GObject
    ╰── NcmFitESMCMCWalker
        ╰── NcmFitESMCMCWalkerAPS

Description

Implementing aps move walker for NcmFitESMCMC (affine invariant).

Functions

ncm_fit_esmcmc_walker_aps_new ()

NcmFitESMCMCWalkerAPS *
ncm_fit_esmcmc_walker_aps_new (guint nwalkers,
                               guint nparams);

Creates a new NcmFitESMCMCWalkerAPS to be used with nwalkers .

Parameters

nwalkers

number of walkers

 

nparams

number of parameters

 

Returns

a new NcmFitESMCMCWalkerAPS.

[transfer full]


ncm_fit_esmcmc_walker_aps_use_interp ()

void
ncm_fit_esmcmc_walker_aps_use_interp (NcmFitESMCMCWalkerAPS *aps,
                                      gboolean use_interp);

Sets whether to use interpolation of the posterior approximation (use_interp == TRUE) or kernel density estimate (use_interp == FALSE).

Parameters

aps

a NcmFitESMCMCWalkerAPS

 

use_interp

whether to use interpolation of the posterior

 

ncm_fit_esmcmc_walker_aps_set_rand_walk_prob ()

void
ncm_fit_esmcmc_walker_aps_set_rand_walk_prob
                               (NcmFitESMCMCWalkerAPS *aps,
                                const gdouble prob);

Sets the probability of stepping using a random walk instead of sampling from the posterior approximation.

Parameters

aps

a NcmFitESMCMCWalkerAPS

 

prob

a double $\in [0,1)$

 

ncm_fit_esmcmc_walker_aps_set_rand_walk_scale ()

void
ncm_fit_esmcmc_walker_aps_set_rand_walk_scale
                               (NcmFitESMCMCWalkerAPS *aps,
                                const gdouble scale);

Sets the scale of the random walk step.

Parameters

aps

a NcmFitESMCMCWalkerAPS

 

scale

a double $\in (0,\infty)$

 

ncm_fit_esmcmc_walker_aps_get_rand_walk_prob ()

gdouble
ncm_fit_esmcmc_walker_aps_get_rand_walk_prob
                               (NcmFitESMCMCWalkerAPS *aps);

Gets current probability of stepping using a random walk instead of sampling from the posterior approximation.

Parameters


ncm_fit_esmcmc_walker_aps_get_rand_walk_scale ()

gdouble
ncm_fit_esmcmc_walker_aps_get_rand_walk_scale
                               (NcmFitESMCMCWalkerAPS *aps);

Gets current probability of stepping using a random walk instead of sampling from the posterior approximation.

Parameters

Property Details

The “rand-walk-prob” property

  “rand-walk-prob”           gdouble

The probability of making a random walk step.

Owner: NcmFitESMCMCWalkerAPS

Flags: Read / Write / Construct

Allowed values: [0,1]

Default value: 0.01


The “rand-walk-scale” property

  “rand-walk-scale”          gdouble

The probability of making a random walk step.

Owner: NcmFitESMCMCWalkerAPS

Flags: Read / Write / Construct

Allowed values: >= 0

Default value: 0.5


The “use-interp” property

  “use-interp”               gboolean

Whether to use interpolation to build the posterior approximation.

Owner: NcmFitESMCMCWalkerAPS

Flags: Read / Write / Construct

Default value: TRUE