Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constraints on domain of logpdf? #155

Open
jluoaz opened this issue Jun 3, 2019 · 1 comment
Open

Constraints on domain of logpdf? #155

jluoaz opened this issue Jun 3, 2019 · 1 comment

Comments

@jluoaz
Copy link

jluoaz commented Jun 3, 2019

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants