iteration_offsets

jaxrens.prior_mass.iteration_offsets(n_live, n_cull=1)[source]

Within-iteration offsets for closed-form weights at any iteration.

Dead point k (0 <= k < n_cull, descending energy) of iteration i is global dead point n = i * n_cull + k, and

  • log X_n = i * log_alpha + x_offset[k]

  • log a_n = i * log_alpha + w_offset[k]

This lets the JIT step and the termination criteria evaluate weights at iteration i in O(n_cull) without materialising the whole ladder.

Returns:

(x_offset, w_offset), both float64 arrays of shape (n_cull,).

Parameters:
Return type:

tuple[ndarray, ndarray]