brian-j-smith / Mamba.jl

Markov chain Monte Carlo (MCMC) for Bayesian analysis in julia
Other
253 stars 52 forks source link

Constraints on domain of logpdf? #155

Open jluoaz opened 5 years ago

jluoaz commented 5 years ago

I want to sample from a PDF that has domain only on the positive reals. How would I indicate that in my implementation of the log PDF?

brian-j-smith commented 5 years ago

Define your log PDF function to return -Inf for any values that are outside the domain - non-positive reals in this case.