7ba3ea351aff34e26302b942a715a626e7823f22,pymc3/distributions/discrete.py,Binomial,logp,#Binomial#Any#,47

Before Change


        return bound(

            logpow(p, value) + logpow(
                1 - p, n - value) + factln(
                    n) - factln(value) - factln(n - value),

            0 <= value, value <= n,
            0 <= p, p <= 1)

After Change


        p = self.p

        return bound(
            binomln(n, value) + logpow(p, value) + logpow(1 - p, n - value),
            0 <= value, value <= n,
            0 <= p, p <= 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: pymc-devs/pymc3
Commit Name: 7ba3ea351aff34e26302b942a715a626e7823f22
Time: 2015-12-25
Author: superbobry@gmail.com
File Name: pymc3/distributions/discrete.py
Class Name: Binomial
Method Name: logp


Project Name: pymc-devs/pymc3
Commit Name: 459a1ca35c12ed8da7f5684f52180c6d22d41492
Time: 2015-12-23
Author: superbobry@gmail.com
File Name: pymc3/distributions/discrete.py
Class Name: Binomial
Method Name: logp


Project Name: pymc-devs/pymc3
Commit Name: 459a1ca35c12ed8da7f5684f52180c6d22d41492
Time: 2015-12-23
Author: superbobry@gmail.com
File Name: pymc3/distributions/discrete.py
Class Name: NegativeBinomial
Method Name: logp


Project Name: pymc-devs/pymc3
Commit Name: 7ba3ea351aff34e26302b942a715a626e7823f22
Time: 2015-12-25
Author: superbobry@gmail.com
File Name: pymc3/distributions/discrete.py
Class Name: NegativeBinomial
Method Name: logp