☰
Debian Codegraph
@
4.1+dfsg-1
/
/
tests
/
prob_prog
/
if-then-else
/
1
/
Demo3.hs
☽
☼
tests/prob_prog/if-then-else/1/Demo3.hs
code
plain
raw
GPL-2.0+
2004-2024 Benjamin Redelings <
[email protected]
>
debian/copyright
1
module Demo3 where
2
3
import Probability
4
5
model = do
6
i <- prior $ bernoulli 0.5
7
y <- prior $ normal 0 1
8
z <- prior $ exponential 0.1
9
let x = if i == 1 then y else z
10
return ["x" %=% x]
11
12
main logDir = do
13
return model