examples/mcmc.js
function lnpost(theta, x, y) {
  var lp = lnprior(theta);
  if (!isFinite(lp)) {
    return -Infinity;
  }
  return lp + lnlike(theta, x, y);
}
function lnpost(theta, x, y) {
  var lp = lnprior(theta);
  if (!isFinite(lp)) {
    return -Infinity;
  }
  return lp + lnlike(theta, x, y);
}
function lnpost ( theta , x , y ) { var lp = lnprior ( theta ) ; if ( ! isFinite ( lp ) ) { return - Infinity ; } return lp + lnlike ( theta , x , y ) ; }
posterior log-probability function
posterior log - probability function