-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add normalize
option to gausshermite
#122
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #122 +/- ##
=======================================
Coverage 96.65% 96.65%
=======================================
Files 9 9
Lines 1224 1224
=======================================
Hits 1183 1183
Misses 41 41
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some tests for this change?
sure, thanks |
src/gausshermite.jl
Outdated
@@ -1,12 +1,18 @@ | |||
@doc raw""" | |||
gausshermite(n::Integer) -> x, w # nodes, weights | |||
gausshermite(n::Integer; probabilist = false) -> x, w # nodes, weights |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gausshermite(n::Integer; probabilist = false) -> x, w # nodes, weights | |
gausshermite(n::Integer; normalize = false) -> x, w # nodes, weights |
Maybe, some other name of the keyword argument would be better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made your suggested changes and added tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates! Could you remove test/_test.todo
?
done |
normalize
option to gausshermite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for the contribution!
I've added an option that allows users to specify that they want the probabilist version of the Gauss Hermite weights. The documentation has been updated, also.