build_distance_kernel¶
- jaxrens.sampling.moves.toy_1d.build_distance_kernel(backend)[source]¶
Build the 1-D distance move: displace one particle along the axis.
Picks a particle at random and shifts its
xby a Gaussian step, wrapping back into[0, a). Onlyxmoves:yandzare not arguments of the toy energy, and letting them drift would add dimensions the model does not have.- Parameters:
backend (Any) – EnergyBackend instance.
- Returns:
(rng_key, state, Emax) -> (new_state, MoveInfo)
- Return type:
step function