5ddb2a451aadc718e42ee9d2505058f57aa80165,scipy/stats/_discrete_distns.py,dlaplace_gen,_cdf,#dlaplace_gen#Any#Any#,687
Before Change
k = floor(x)
ind = (k >= 0)
const = exp(a)+1
olderr = np.seterr(all="ignore")
vals = np.where(ind, 1.0-exp(-a*k)/const, exp(a*(k+1))/const)
np.seterr(**olderr)
return vals
After Change
k = floor(x)
f = lambda k, a: 1.0 - exp(-a * k) / (exp(a) + 1)
f2 = lambda k, a: exp(a * (k+1)) / (exp(a) + 1)
return _lazywhere(k >= 0, (k, a), f=f, f2=f2)
def _ppf(self, q, a):
const = 1 + exp(a)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: scipy/scipy
Commit Name: 5ddb2a451aadc718e42ee9d2505058f57aa80165
Time: 2013-12-30
Author: ralf.gommers@googlemail.com
File Name: scipy/stats/_discrete_distns.py
Class Name: dlaplace_gen
Method Name: _cdf
Project Name: scipy/scipy
Commit Name: 2b9b1d91e822b1ca649fd4e01c9c5c402246b7f3
Time: 2014-11-03
Author: evgeni@burovski.me
File Name: scipy/stats/tests/test_stats.py
Class Name: TestNanFunc
Method Name: test_nanstd_all
Project Name: scipy/scipy
Commit Name: 2b9b1d91e822b1ca649fd4e01c9c5c402246b7f3
Time: 2014-11-03
Author: evgeni@burovski.me
File Name: scipy/stats/tests/test_stats.py
Class Name: TestNanFunc
Method Name: test_nanmean_all