Skip to content

Commit 066e29f

Browse files
authored
Update sampling_source.py
1 parent d2730ae commit 066e29f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/sampling_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self):
88

99
def pdf(self, x):
1010
"""Evaluate total probability of data x."""
11-
return np.sum(self.dist.pdf(x))
11+
return np.prod(self.dist.pdf(x))
1212

1313
def logpdf(self, x):
1414
"""Evaluate total log probability of data x."""

0 commit comments

Comments
 (0)