calc_log_weights

jaxrens.postprocess.thermodynamics.calc_log_weights(n_dead, n_live, n_cull=1)[source]

Compute log prior-mass weights for dead points.

pymatnest convention (ns_analyse.calc_log_a); see jaxrens.prior_mass for the formulae. Dead points are indexed over the per-cull sequence, n_cull per iteration in descending energy — exactly the row order of a .energies file.

Parameters:
  • n_dead – Number of dead points collected (scalar).

  • n_live – Number of live walkers (scalar).

  • n_cull (int) – Number culled per iteration (default 1).

Returns:

np.ndarray[float64] of shape (n_dead,).

Return type:

ndarray