Skip to content

num::markov::umbrella_sweep_prob

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

template <typename ProbFn, std::invocable<idx> Apply, typename Save, typename Restore,
          typename Measure, std::uniform_random_bit_generator RNG>
umbrella_stats umbrella_sweep_prob(idx n_sites, ProbFn acceptance_prob,
                                   Apply apply_flip, Save save_state,
                                   Restore restore_state, Measure measure_order,
                                   umbrella_window window, RNG &rng);

Umbrella-sampled Metropolis sweep (precomputed probability variant).

Same as umbrella_sweep but uses caller-supplied acceptance probabilities.

Template parameters

  • ProbFn: Callable: idx -> real
  • Apply: Callable: idx -> void
  • Save: Callable: () -> void
  • Restore: Callable: () -> void
  • Measure: Callable: () -> idx
  • RNG: Random number generator.