-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Adding PDFs/CDFs to the main library #53
Comments
Hi @ManifoldFR |
Great! You'd prefer a separate header file where they are implemented as free functions? Not member functions of the |
@ManifoldFR auto norm = NormalGen{0, 1};
norm.pdf(x) == exp(-x*x/2)/sqrt(2*pi) |
Yes, that's what I'm thinking of. We'd be replicating the API of It's also useful because in some classes such as |
@ManifoldFR Great! I cancel my words "separated header file". Please feel free to add member functions :) |
Hi @bab2min ! Thanks for the great work you've done on this library. I'm using it for a purpose (importance sampling) where I need to compute the probability density or cumulative distribution functions of what I'm sampling.
I noticed some benchmarks implement some 1D pdfs and cdfs. Would you be interested in having those be part of the main library, as well as multivariate densities e.g. the multivariate normal density? For now what I've implemented is in my own client library, but I could make a PR if there's interest.
The text was updated successfully, but these errors were encountered: