#include <coloring_mcmc.hpp>
Inheritance diagram for Arak::ColoringProposal:
This distribution determines the convergence speed of the Markov chain, but does not affect the stationary distribution (provided it is Harris recurrent).
This implementation is analogous to an iterator interface. The sample method "advances the iterator" by generating a new move which can be accessed by the move() method.
Definition at line 76 of file coloring_mcmc.hpp.
Public Member Functions | |
virtual | ~ColoringProposal () |
Destructor. | |
virtual void | sample (const Coloring &state, Arak::Util::Random &random, bool reversible=true)=0 |
Samples the proposal distribution to obtain a new move. | |
virtual ColoringMove & | move ()=0 |
Returns a reference to the move most recently sampled from this proposal distribution. | |
virtual double | ll (const Coloring &c)=0 |
Returns the log likelihood of the most recently sampled proposal. | |
virtual double | rll (const Coloring &c)=0 |
Returns the log likelihood of sampling the reverse of the most recently sampled proposal. | |
virtual void | result (bool accepted)=0 |
This method is invoked by the Markov chain to inform the proposal of the result of its most recently proposed move. |
|
Destructor.
Definition at line 83 of file coloring_mcmc.hpp. |
|
Returns the log likelihood of the most recently sampled proposal.
Implemented in Arak::CN94Proposal, and Arak::ModifiedCN94Proposal. |
|
Returns a reference to the move most recently sampled from this proposal distribution. This move is guaranteed to be stable only until #sample(const Coloring&, Arak::Util::Random&) is called again.
Implemented in Arak::CN94Proposal, and Arak::ModifiedCN94Proposal. |
|
This method is invoked by the Markov chain to inform the proposal of the result of its most recently proposed move.
Implemented in Arak::CN94Proposal. |
|
Returns the log likelihood of sampling the reverse of the most recently sampled proposal.
Implemented in Arak::CN94Proposal, and Arak::ModifiedCN94Proposal. |
|
Samples the proposal distribution to obtain a new move.
Implemented in Arak::CN94Proposal. |