Skip to content

num::markov::umbrella_sweep

Defined in header <stochastic/detail/mcmc_impl.hpp>

template <energy_difference DeltaE, std::invocable<idx> Apply, typename Save,
          typename Restore, typename Measure, std::uniform_random_bit_generator RNG>
umbrella_stats umbrella_sweep(idx n_sites, DeltaE delta_energy, Apply apply_flip,
                              Save save_state, Restore restore_state,
                              Measure measure_order, umbrella_window window, real beta,
                              RNG &rng);

Make one Metropolis sweep confined to a window, undoing moves that leave it (umbrella sampling). save() and restore() bracket the sweep; measure() returns the order parameter.