-
Notifications
You must be signed in to change notification settings - Fork 50
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
Feature/rdf normalization #529
Conversation
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.
Thanks for fixing! This looks like it should work to me.
Codecov Report
@@ Coverage Diff @@
## master #529 +/- ##
==========================================
+ Coverage 90.33% 90.39% +0.05%
==========================================
Files 16 16
Lines 2049 2050 +1
Branches 27 27
==========================================
+ Hits 1851 1853 +2
+ Misses 185 184 -1
Partials 13 13
Continue to review full report at Codecov.
|
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.
Looks good!
Levine, Stone, and Kohlmeyer have a clean way of expressing g(r) normalization with arbitrary particle selections if you would like to generalize this or use their notation in the documentation.
Thanks for the paper! I think we could implement that generally here, it would just require maintaining a counter inside the loop in compute to determine the total number of pairs that we computed for and then normalizing for that case. However, it seems like a pretty esoteric use-case, so I don't think it's a priority and I'm happy to punt on it for now. @bdice thoughts? If you agree with me, then go ahead and merge this PR when you're happy and we can reconsider that at a future date. |
Josh makes a good point. It actually probably isn't too hard to treat this normalization exactly here because freud does not have such a strong sense of "selections" / "groups" or "tags" as other programs. The number of pairs in the normalization is |
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.
Looks good!
Description
Enable normalization of RDF to 1 in the large R limit. Also fix a bug in Jupyter plotting code.
Motivation and Context
Resolves: #396. Also fixes an unrelated bug.
How Has This Been Tested?
Screenshots
Types of changes
Checklist: