Skip to content

Commit e4bd6c2

Browse files
author
FA Saad
committed
Use math.log instead of numpy.log in Normal.
1 parent 38a6068 commit e4bd6c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/primitives/normal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ def calc_log_Z(r, s, nu):
194194
return (
195195
((nu + 1.) / 2.) * LOG2
196196
+ .5 * LOGPI
197-
- .5 * np.log(r)
198-
- (nu/2.) * np.log(s)
199-
+ lgamma(nu/2.0))
197+
- .5 * log(r)
198+
- (nu/2.) * log(s)
199+
+ lgamma(nu/2.))
200200

201201
@staticmethod
202202
def sample_parameters(m, r, s, nu, rng):

0 commit comments

Comments
 (0)