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

Gaussian distribution #24

Merged
merged 1 commit into from
Feb 22, 2018
Merged

Conversation

j-faria
Copy link
Contributor

@j-faria j-faria commented Feb 22, 2018

Hi Brendon,
This implements the Gaussian distribution.
I used the normal_cdf function already in Utils.cpp; the normal_inverse_cdf is using code from here which is algorithm ASA241, accurate to 10e-16.
This avoids introducing a dependency on Boost, even if erf_inv from Boost might be more accurate (I did include but comment out the code to do it with Boost). What do you think?
Sorry about the space/tab mess in Utils.cpp

@eggplantbren eggplantbren merged commit e9beb55 into eggplantbren:master Feb 22, 2018
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