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

Add normalize option to gausshermite #122

Merged
merged 6 commits into from
Sep 15, 2023

Conversation

NittanyLion
Copy link
Contributor

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.

@codecov
Copy link

codecov bot commented Jul 25, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (d3dddb7) 96.65% compared to head (a2f1791) 96.65%.

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           
Files Changed Coverage Δ
src/gausshermite.jl 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@hyrodium hyrodium left a 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?

@NittanyLion
Copy link
Contributor Author

Could you add some tests for this change?

sure, thanks

@@ -1,12 +1,18 @@
@doc raw"""
gausshermite(n::Integer) -> x, w # nodes, weights
gausshermite(n::Integer; probabilist = false) -> x, w # nodes, weights
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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?

Copy link
Contributor Author

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.

Copy link
Collaborator

@hyrodium hyrodium left a 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?

@NittanyLion
Copy link
Contributor Author

Thank you for the updates! Could you remove test/_test.todo?

done

@hyrodium hyrodium changed the title added probabilist weights Add normalize option to gausshermite Sep 15, 2023
Copy link
Collaborator

@hyrodium hyrodium left a 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!

@hyrodium hyrodium merged commit c755422 into JuliaApproximation:master Sep 15, 2023
11 of 12 checks passed
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