jaxrens.prior_mass¶
Prior-mass bookkeeping for nested sampling with n_cull >= 1.
Single source of truth for the prior-mass ladder X_n and the dead-point
weights a_n, shared by the in-JIT evidence accumulator
(jaxrens.sampling.nested_sampling), the termination criteria
(jaxrens.sampling.termination) and post-processing
(jaxrens.postprocess.thermodynamics).
Convention follows pymatnest’s ns_analyse.calc_log_a (SENS paper,
Martiniani et al., PRX 4, 031034 (2014), Eq. 3,
doi:10.1103/PhysRevX.4.031034).
With K live walkers and n_cull walkers removed per iteration (the
paper writes P for n_cull; jaxrens reserves P for the
replicas-per-GPU axis), dead point n (0-indexed over the global, per-cull
sequence; within an iteration the culled walkers are ordered by descending
energy) carries
so one full iteration contracts the prior mass by (K + 1 - n_cull) / (K + 1).
After D dead points each of the K live walkers carries
X_D / K (X_D with D + 1 terms, matching the one-step shift of
a_n = X_n - X_{n+1}), so dead + live weights sum to the constant X_0.
NumPy only — imported by the JAX-free post-processing path.
Functions
Raise if |
|
Within-iteration offsets for closed-form weights at any iteration. |
|
Log prior-mass contraction per iteration, |
|
|
|
Log weight carried by each live walker after |
|
|