-
-
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
Log Cdf of GenExtreme outputs negative infinity instead of zero at extreme right #349
base: main
Are you sure you want to change the base?
Conversation
pull req first time |
Did you close by accident @souvikpaul33 ? |
@ricardoV94 I think yes. Sorry for that. I'm reopening it. |
CC @ccaprani if you want to review |
@souvikpaul33 can you rename the PR title to be more informative (we use it for the release notes). And can you add a test that covers the previously broken functionality? |
@ricardoV94 Thanks! Renamed the title. This is the example test case where it was broken before import numpy as np rv = pmx.GenExtreme.dist(mu=0, sigma=1, xi=-0.5) # range of x: (-inf, 2) print(np.exp(lcdf_gev.eval())) # check last four values : extreme right |
It should be enough to test one of the last values that was giving -inf. You'll have to add the check as a test in the codebase |
Adding a change to gev logcdf