4e0e3eb471f84e823abdcae17f4da6e541a5ae33,scipy/stats/_discrete_distns.py,logser_gen,_pmf,#logser_gen#Any#Any#,408
Before Change
return (p > 0) & (p < 1)
def _pmf(self, k, p):
return -np.power(p, k) * 1.0 / k / log(1 - p)
def _stats(self, p):
r = log(1 - p)
mu = p / (p - 1.0) / r
After Change
return (p > 0) & (p < 1)
def _pmf(self, k, p):
return -np.power(p, k) * 1.0 / k / special.log1p(-p)
def _stats(self, p):
r = special.log1p(-p)
mu = p / (p - 1.0) / r
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: scipy/scipy
Commit Name: 4e0e3eb471f84e823abdcae17f4da6e541a5ae33
Time: 2016-08-17
Author: warren.weckesser@gmail.com
File Name: scipy/stats/_discrete_distns.py
Class Name: logser_gen
Method Name: _pmf
Project Name: scipy/scipy
Commit Name: f5b872688d3749861301b0e53f287325ab2f9be0
Time: 2016-06-10
Author: argriffi@ncsu.edu
File Name: scipy/stats/_continuous_distns.py
Class Name: gumbel_l_gen
Method Name: _ppf
Project Name: scipy/scipy
Commit Name: c88c142dc0e972a1dc18430a86c7950c4b5f2486
Time: 2015-01-19
Author: manitejanmt@gmail.com
File Name: scipy/stats/_continuous_distns.py
Class Name: rayleigh_gen
Method Name: _ppf
Project Name: scipy/scipy
Commit Name: 3b6afc3bce04d2c7729bb4d57986cf180356297f
Time: 2015-01-27
Author: dr10ru@yahoo.co.in
File Name: scipy/stats/_continuous_distns.py
Class Name: gompertz_gen
Method Name: _ppf
Project Name: scipy/scipy
Commit Name: 4e0e3eb471f84e823abdcae17f4da6e541a5ae33
Time: 2016-08-17
Author: warren.weckesser@gmail.com
File Name: scipy/stats/_discrete_distns.py
Class Name: logser_gen
Method Name: _stats