build_lattice_kernel¶
- jaxrens.sampling.moves.toy_1d.build_lattice_kernel(backend, n_atoms=2, max_vol_per_atom=5.0, min_vol_per_atom=0.25)[source]¶
Build the 1-D lattice move: change the box length
a.Proposes
a' = a + step_size * N(0, 1)and rescales the particles’ fractional coordinates, so the move is the 1-D analogue of a volume move. The paper samplesaunder a uniform prior (its eq 3), so there is no Jacobian factor here — acceptance is the hard likelihood constraint plus the box-length bounds.- Parameters:
- Returns:
(rng_key, state, Emax) -> (new_state, MoveInfo)
- Return type:
step function