Skip to content
New issue

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

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

Already on GitHub? # to your account

Inverse transform sampling #6

Open
timueh opened this issue Feb 20, 2019 · 2 comments
Open

Inverse transform sampling #6

timueh opened this issue Feb 20, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@timueh
Copy link
Collaborator

timueh commented Feb 20, 2019

It would be helpful to transpile the inverse transform sampling method from here to our package. Yes, I am aware that there is a working implementation withing ApproxFun.jl, but we would like to avoid having to add this heavy dependency (load up time increases drastically.).

p.s.: the implementation withing ApproxFun.jl can be found here.

@timueh timueh added the enhancement New feature or request label Feb 20, 2019
@timueh
Copy link
Collaborator Author

timueh commented Feb 21, 2019

This is the paper the algorithm is based on. At the beginning of Section 2 the authors say

Let $f(x)$ be a prescribed non-negative function supported on the interval $[a, b]$. Otherwise, if the support of $f$ is the whole real line and $f$ is rapidly decaying, an interval $[a, b]$ can be selected outside of which $f$ is negligible.

just something to bear in mind.

maqsoodrajput added a commit that referenced this issue Oct 4, 2019
@adriangrupp
Copy link
Contributor

Since this issue is already two years old, one should first verify, if the load up time improved.
If not, check if we can just use ApproxFunBase.jl instead. However,
the stand-alone usage is not documented yet.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants