We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Uniform
We currently use an affine transformation from [0,1):
[0,1)
Distributions.jl/src/univariate/continuous/uniform.jl
Line 154 in ceb6343
Perhaps this approach would be better: https://hal.science/hal-03282794 (pdf)
Originally posted by @Tortar in LilithHafner/DynamicDiscreteSamplers.jl#35 (comment)
The text was updated successfully, but these errors were encountered:
It's rather convenient that the author, @goualard-f , even provided a naive Julia implementation that assumes that Distributions,jl is loaded.
It looks to me like all of the overhead of this method can be precomputed in a Sampler, except one of the if-branches.
Sorry, something went wrong.
No branches or pull requests
We currently use an affine transformation from
[0,1)
:Distributions.jl/src/univariate/continuous/uniform.jl
Line 154 in ceb6343
Perhaps this approach would be better: https://hal.science/hal-03282794 (pdf)
Originally posted by @Tortar in LilithHafner/DynamicDiscreteSamplers.jl#35 (comment)
The text was updated successfully, but these errors were encountered: