示例#1
0
 bool reject(const double value, const double old_logp) {
   return bad_logp(value) || log(rng_.uniform()) > (value - old_logp) ? true : false;
 }
示例#2
0
 bool reject(const double value, const double old_logp) {
   double r = exp(value - old_logp);
   return bad_logp(value) || (rng_.uniform() > r && r < 1)  ? true : false;
 }