Skip to main content

Module mh

Module mh 

Source
Expand description

Metropolis–Hastings over the Boltzmann target, delegated to fugue

The old EvolutionStep hand-rolled its proposal (and only ever perturbed F64 choices, so BitString/Permutation chains silently never moved). This wrapper deletes all of that: one transition is one call into [fugue::adaptive_single_site_mh], which picks the target site uniformly over all sites and dispatches the proposal by value type (Gaussian / log-space walk for F64, flip for Bool, reflected discrete walk for U64, prior-resample for Usize, integer walk for I64), including the reversible-jump corrections for structure-changing models.

Structs§

EvolutionChain
An MH chain over the fixed-β Boltzmann target π_β ∝ p(x)·exp(β·f(x)).