-
Notifications
You must be signed in to change notification settings - Fork 7
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 relativistic Breit-Wigner PDF with analytic CDF #19
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
This PDF should now work. I was a bit unsure about a few things when implementing this though:
|
Let's use the non-capital one (as it's a Python convention for all names)
That's fine, we can go directly to production
This looks fine so far
They can be left aside for the time being, as I am currently anyway reworking them |
@all-contributors please add @simonthor for code and ideas |
I've put up a pull request to add @simonthor! 🎉 |
I should now have fixed all the issues in the code. For the record, I tried to find an analytical inverse function for the CDF using MATLAB (was not sure how to do it using sympy) but it could not find a solution. Are there any other things that should be fixed in the code? Otherwise, I think the code is ready to be merged :) |
Hey looks good! I just made a small change, so make sure to pull first. One last thing: can you factor out the computation of the PDF? Basically create a pure function called |
Fixed it now! Named it |
Good, many thanks for this! LGTM! |
Proposed Changes
This is similar to #2 except:
Tests added
sample
function worksChecklist