numerics 0.1.0
Loading...
Searching...
No Matches
sample.hpp File Reference

sample(model, sampler, rng): the stochastic-sampling verb (MCMC), the counterpart to solve() for targets that are sampled rather than solved. More...

#include "solve/algorithms.hpp"
#include "stochastic/mcmc.hpp"
#include <functional>

Go to the source code of this file.

Classes

struct  num::MCMCModel
 An MCMC target: site count, per-site acceptance/proposal, observable. More...
 

Namespaces

namespace  num
 

Functions

template<IsMCMCAlg A, typename RNG >
double num::sample (const MCMCModel &model, const A &alg, RNG &rng)
 Run equilibration then measurement sweeps; return the mean observable.
 

Detailed Description

sample(model, sampler, rng): the stochastic-sampling verb (MCMC), the counterpart to solve() for targets that are sampled rather than solved.

Definition in file sample.hpp.