49eccee27d9920449bc6bd6967cb86d2a1970e71,scipy/stats/_continuous_distns.py,gengamma_gen,_pdf,#gengamma_gen#Any#Any#Any#,1846
Before Change
return (a > 0) & (c != 0)
def _pdf(self, x, a, c):
return abs(c) * exp((c*a-1)*log(x)-x**c - gamln(a))
def _cdf(self, x, a, c):
val = special.gammainc(a, x**c)
cond = c + 0*val
After Change
return (a > 0) & (c != 0)
def _pdf(self, x, a, c):
return exp(self._logpdf(x, a, c))
def _logpdf(self, x, a, c):
return log(abs(c)) + special.xlogy(c*a - 1, x) - x**c - gamln(a)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: scipy/scipy
Commit Name: 49eccee27d9920449bc6bd6967cb86d2a1970e71
Time: 2014-09-17
Author: warren.weckesser@gmail.com
File Name: scipy/stats/_continuous_distns.py
Class Name: gengamma_gen
Method Name: _pdf
Project Name: scipy/scipy
Commit Name: c927951ccd7a3543ed9005a92ee04269b397c3a8
Time: 2015-07-27
Author: johannes@balle.io
File Name: scipy/stats/_continuous_distns.py
Class Name: chi_gen
Method Name: _pdf
Project Name: scipy/scipy
Commit Name: 0a04cf71a19c846191e894ec415b07434ba1e59e
Time: 2014-09-17
Author: warren.weckesser@gmail.com
File Name: scipy/stats/_continuous_distns.py
Class Name: exponpow_gen
Method Name: _pdf