|
versatile-mcmc
0.1.7
|
Metropolis-Hastings usage example. More...
#include <vmcmc/io.hpp>#include <vmcmc/logger.hpp>#include <vmcmc/metropolis.hpp>#include <vmcmc/math.hpp>#include <vmcmc/proposal.hpp>#include <vmcmc/random.hpp>#include <vmcmc/stringutils.hpp>
Functions | |
| double | targetFunction (double x1, double x2) |
| The likelihood function (a bivariate normal distribution) for this particular example. More... | |
| int | main (int, char *[]) |
Metropolis-Hastings usage example.
A simple, very preliminary example of how the versatile-mcmc library can be used to run a metropolis-hastings sampler on a simple statistical distribution and save the output to an ASCII file.
| double targetFunction | ( | double | x1, |
| double | x2 | ||
| ) |
The likelihood function (a bivariate normal distribution) for this particular example.
Alternatively, the arguments can be encompassed in a vector:
1.8.11