|
| void | SetParameterConfig (const ParameterConfig ¶mConfig) |
| | Set the parameter configuration. More...
|
| |
|
const ParameterConfig & | GetParameterConfig () const |
| |
|
void | SetPrior (DefaultCallable prior) |
| |
|
template<size_t NParams, typename CallableT > |
| void | SetPrior (CallableT prior) |
| |
|
void | SetLikelihood (DefaultCallable likelihood) |
| |
|
template<size_t NParams, typename CallableT > |
| void | SetLikelihood (CallableT likelihood) |
| |
|
void | SetNegLogLikelihood (DefaultCallable negLoglikelihood) |
| |
|
template<size_t NParams, typename CallableT > |
| void | SetNegLogLikelihood (CallableT negLoglikelihood) |
| |
|
void | SetTotalLength (size_t length) |
| |
|
size_t | GetTotalLength () const |
| |
| template<typename WriterT , typename... ArgsT> |
| void | AddWriter (ArgsT &&...args) |
| | Add an output writer by specifying its type and passing constructor arguments. More...
|
| |
|
void | AddWriter (std::shared_ptr< Writer > writer) |
| |
| double | EvaluatePrior (const std::vector< double > ¶mValues) const |
| | Evaluate the prior for the given parameter values. More...
|
| |
| double | EvaluateLikelihood (const std::vector< double > ¶mValues) const |
| | Evaluate the target function likelihood for the given parameter values. More...
|
| |
| double | EvaluateNegLogLikelihood (const std::vector< double > ¶mValues) const |
| | Evaluate the target function -log(likelihood) for the given parameter values. More...
|
| |
| bool | Evaluate (Sample &sample) const |
| | Evalutate the target function prior, likelihood and -log(likelihood) at the position defined by the sample, and update the sample accordingly. More...
|
| |
|
void | Run () |
| | Start sampling!
|
| |
|
virtual void | Initialize () |
| |
|
virtual void | Advance (size_t nSteps=1)=0 |
| |
|
virtual void | Finalize () |
| |
|
virtual size_t | NumberOfChains ()=0 |
| |
|
virtual const Chain & | GetChain (size_t cIndex=0)=0 |
| |
|
ChainSetStatistics & | GetStatistics () |
| |
|
const ChainSetStatistics & | GetStatistics () const |
| |
Abstract base class for the core MCMC sampling algorithms.
This base class models the sampling algorithm of an MCMC, advancing to a new state in the parameter space, accepting or rejecting, and saving that state (subsequently sampling the parameter space).
Ideally, this interface should cover single chain algorithms, as well as multi-chain algorithms (like DREAM).