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

Proper truncated distributions #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OliverEvans96
Copy link

Hello,

Thanks for publishing this package!

When using a large number of parameters, the current hack to sampling from a truncated distribution would require an unreasonably large number of iterations, so I made this minor change to use the truncated functionality built-in to Distributions.jl

Let me know if this seems reasonable. I'm happy to make any other necessary changes for it to be acceptable.

Thanks,
Oliver

@floswald
Copy link
Owner

very nice! I think when I was developing this package this option did not exist yet, I was looking for exactly that. were you able to run a unit test for this?

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

Successfully merging this pull request may close these issues.

2 participants