KJB
|
Indicates the result of an MH proposal. It is simply a pair of probabilities, forward and backward. More...
#include <sample_base.h>
Public Member Functions | |
Mh_proposal_result (const std::string &type_=std::string("")) | |
Mh_proposal_result (double fp, double rp, const std::string &type_=std::string("")) | |
bool | operator== (const Mh_proposal_result &pr) |
bool | operator!= (const Mh_proposal_result &pr) |
Mh_proposal_result & | operator+= (const Mh_proposal_result &pr) |
Static Public Member Functions | |
static Mh_proposal_result | unchanged (const std::string &type_=std::string("")) |
named constructor - returns a proposal result indicating the model was not changed More... | |
Public Attributes | |
double | fwd_prob |
log forward proposal probability More... | |
double | rev_prob |
log reverse proposal probability More... | |
std::string | type |
Name of proposal type. More... | |
bool | no_change |
proposal didn't modify the model More... | |
Indicates the result of an MH proposal. It is simply a pair of probabilities, forward and backward.
|
inline |
|
inline |
fp | log forward proposal probability |
rp | log reverse proposal probability |
type_ | optional description of proposal (no spaces) |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
named constructor - returns a proposal result indicating the model was not changed
double Mh_proposal_result::fwd_prob |
log forward proposal probability
bool Mh_proposal_result::no_change |
proposal didn't modify the model
double Mh_proposal_result::rev_prob |
log reverse proposal probability
std::string Mh_proposal_result::type |
Name of proposal type.