about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/examples/static/Misc/sprinkler.bif
blob: 8925e79cb92350fe4959b88947f447f2d36c4672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
network Grass
    {}
variable Cloudy
    { type discrete[2] {false true}; }
variable Sprinkler
    { type discrete[2] {false true}; }
variable Rain
    { type discrete[2] {false true}; }
variable WetGrass
    { type discrete[2] {false true}; }
probability (Cloudy)
    { table 0.5 0.5; }
probability (Sprinkler | Cloudy)
    { table 0.5 0.9 0.5 0.1; }
probability (Rain | Cloudy)
    { table 0.8 0.2 0.2 0.8; }
probability (WetGrass | Rain Sprinkler)
    { table 1.0 0.1 0.1 0.01 0.0 0.9 0.9 0.99; }