lawmurray / LibBi

Bayesian state-space modelling on high-performance hardware, including multicore, GPUs and distributed clusters.
http://www.libbi.org
Other
96 stars 22 forks source link

Don't throw error if multinomial probabilities are all zero #23

Closed sbfnk closed 7 years ago

sbfnk commented 7 years ago

Without this, if the first Metropolis-Hastings sample yields log-likelihood (-infinity) libbi will abort with a cryptic error about an unmet condition in boost::uniform_real.