Method

NumCosmoMathFitESMCMCWalkerprob

Declaration [src]

gdouble
ncm_fit_esmcmc_walker_prob (
  NcmFitESMCMCWalker* walker,
  GPtrArray* theta,
  GPtrArray* m2lnL,
  NcmVector* thetastar,
  guint k,
  const gdouble m2lnL_cur,
  const gdouble m2lnL_star
)

Description [src]

Calculates the transition probability.

Parameters

theta

Type: An array of NcmVector*

Array of walkers positions.

The data is owned by the caller of the method.
m2lnL

Type: An array of NcmVector*

Array of walkers $-2\ln(L)$.

The data is owned by the caller of the method.
thetastar

Type: NcmVector

A NcmVector.

The data is owned by the caller of the method.
k

Type: guint

Index of the walker to move.

m2lnL_cur

Type: const gdouble

Current value of $-2\ln(L)$.

m2lnL_star

Type: const gdouble

Proposed value for $-2\ln(L^\star)$.

Return value

Type: gdouble

The transition probability.