fe01bc442e70c4fc52dd9cae5151360816dda372,scipy/stats/_continuous_distns.py,exponweib_gen,_pdf,#exponweib_gen#Any#Any#Any#,1003

Before Change


    
    def _pdf(self, x, a, c):
        exc = exp(-x**c)
        return a*c*(1-exc)**asarray(a-1) * exc * x**(c-1)

    def _logpdf(self, x, a, c):
        exc = exp(-x**c)
        return log(a) + log(c) + (a-1.)*log(1-exc) - x**c + (c-1.0)*log(x)

After Change



    
    def _pdf(self, x, a, c):
        return exp(self._logpdf(x, a, c))

    def _logpdf(self, x, a, c):
        negxc = -x**c
        exm1c = -expm1(negxc)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: scipy/scipy
Commit Name: fe01bc442e70c4fc52dd9cae5151360816dda372
Time: 2014-04-19
Author: warren.weckesser@gmail.com
File Name: scipy/stats/_continuous_distns.py
Class Name: exponweib_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


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