-
Notifications
You must be signed in to change notification settings - Fork 145
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
bug: normal CDF not enough precision #416
Labels
Comments
From Jeff: no rush on this to get to main, since it is need for the new filter stuff, not the current main branch. |
closing as this is fixed on quantile_methods since at least |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛
Describe the bug
List the steps someone needs to take to reproduce the bug.
Run filter using the RHF (lorenz_96)
What was the expected outcome?
Precision of the results for norm_cdf calculation using the Abramowitz and Stegun approach matches results from Matlab.
What actually happened?
Lower precision results than expected. Here is the comparison to Matlab:
10^-8 differences
Error Message
No error
Which model(s) are you working with?
Lorenz_96 but will apply to any model if running with RHF.
Notes:
We believe it is only RHF that is effected.
To test: other filter options to confirm, where else is norm_cdf used.
Screenshots
Here is an improved norm_cdf method using Fortran erf and erfc intrinsics comparison to matlab
10^-16 differences
Version of DART
Which version of DART are you using?
v10.X.X
Have you modified the DART code?
No, but the improved method is available on request (from Jeff)
Build information
Please describe:
To test:
The text was updated successfully, but these errors were encountered: