fe01bc442e70c4fc52dd9cae5151360816dda372,scipy/stats/_continuous_distns.py,exponweib_gen,_logpdf,#exponweib_gen#Any#Any#Any#,1007

Before Change



    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)

    def _cdf(self, x, a, c):
        exm1c = -expm1(-x**c)
        return (exm1c)**a

After Change


        negxc = -x**c
        exm1c = -expm1(negxc)
        logp = (log(a) + log(c) + special.xlogy(a - 1.0, exm1c) +
                negxc + special.xlogy(c - 1.0, x))
        return logp

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

Frequency: 3

Non-data size: 5

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


Project Name: scipy/scipy
Commit Name: ce66e32b3efb3fd4756700cce3db81c4d76bd605
Time: 2015-04-29
Author: j.j.green@gmx.co.uk
File Name: scipy/interpolate/rbf.py
Class Name: Rbf
Method Name: _h_thin_plate


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