36221542b13f4245c4d06ab85f9fd108a7ebea07,scipy/stats/_continuous_distns.py,lomax_gen,_cdf,#lomax_gen#Any#Any#,3232

Before Change


        return log(c) - (c+1)*log(1+x)

    def _cdf(self, x, c):
        return 1.0-1.0/(1.0+x)**c

    def _sf(self, x, c):
        return 1.0/(1.0+x)**c

After Change


        return log(c) - (c+1)*special.log1p(x)

    def _cdf(self, x, c):
        return -special.expm1(-c*special.log1p(x))

    def _sf(self, x, c):
        return exp(-c*special.log1p(x))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: scipy/scipy
Commit Name: 36221542b13f4245c4d06ab85f9fd108a7ebea07
Time: 2015-01-16
Author: manitejanmt@gmail.com
File Name: scipy/stats/_continuous_distns.py
Class Name: lomax_gen
Method Name: _cdf


Project Name: scipy/scipy
Commit Name: 36221542b13f4245c4d06ab85f9fd108a7ebea07
Time: 2015-01-16
Author: manitejanmt@gmail.com
File Name: scipy/stats/_continuous_distns.py
Class Name: lomax_gen
Method Name: _ppf


Project Name: scipy/scipy
Commit Name: 36221542b13f4245c4d06ab85f9fd108a7ebea07
Time: 2015-01-16
Author: manitejanmt@gmail.com
File Name: scipy/stats/_continuous_distns.py
Class Name: lomax_gen
Method Name: _cdf


Project Name: scipy/scipy
Commit Name: 9c513f7239a29970ec932885cb58c4c32fa383fa
Time: 2016-06-10
Author: argriffi@ncsu.edu
File Name: scipy/stats/_continuous_distns.py
Class Name: bradford_gen
Method Name: _ppf