Skip to content

Commit 685dcd0

Browse files
committed
example with partial censor
1 parent 03764d0 commit 685dcd0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymc/distributions/censored.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ class Censored(Distribution):
106106
with pm.Model():
107107
normal_dist = pm.Normal.dist(mu=0.0, sigma=1.0)
108108
censored_normal = pm.Censored("censored_normal", normal_dist, lower=-1, upper=1)
109+
with pm.Model():
110+
normal_dist = pm.Normal.dist(mu=0.0, sigma=1.0)
111+
partially_censored_normal = pm.Censored("partially_censored_normal", normal_dist, lower=-1, upper=np.inf)
109112
"""
110113

111114
rv_type = CensoredRV

0 commit comments

Comments
 (0)