515fa79ef2d3508bb5c8097a7e3015a904328207,scipy/stats/_continuous_distns.py,truncexpon_gen,_logpdf,#truncexpon_gen#Any#Any#,3769

Before Change


        return exp(-x)/(1-exp(-b))

    def _logpdf(self, x, b):
        return -x - log(1-exp(-b))

    def _cdf(self, x, b):
        return (1.0-exp(-x))/(1-exp(-b))

After Change


        return exp(-x)/(-special.expm1(-b))

    def _logpdf(self, x, b):
        return -x - log(-special.expm1(-b))

    def _cdf(self, x, b):
        return special.expm1(-x)/special.expm1(-b)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: scipy/scipy
Commit Name: 515fa79ef2d3508bb5c8097a7e3015a904328207
Time: 2015-01-18
Author: manitejanmt@gmail.com
File Name: scipy/stats/_continuous_distns.py
Class Name: truncexpon_gen
Method Name: _logpdf


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: _cdf


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: _cdf


Project Name: scipy/scipy
Commit Name: 515fa79ef2d3508bb5c8097a7e3015a904328207
Time: 2015-01-18
Author: manitejanmt@gmail.com
File Name: scipy/stats/_continuous_distns.py
Class Name: truncexpon_gen
Method Name: _pdf