From 47bc8f22fc678c86b344621a6c5bafc83277689c Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Tue, 11 Dec 2012 16:20:55 +0000 Subject: [PATCH] Examples: sprinker was converted from clpbn to pfl --- packages/CLPBN/examples/sprinkler.yap | 33 --------------------------- 1 file changed, 33 deletions(-) delete mode 100644 packages/CLPBN/examples/sprinkler.yap diff --git a/packages/CLPBN/examples/sprinkler.yap b/packages/CLPBN/examples/sprinkler.yap deleted file mode 100644 index f0be31fee..000000000 --- a/packages/CLPBN/examples/sprinkler.yap +++ /dev/null @@ -1,33 +0,0 @@ - -:- style_check(all). - -:- ensure_loaded(library(clpbn)). - -wet_grass(W) :- - sprinkler(S), - rain(R), - { W = wet with p([f,t], - ([1.0,0.1,0.1,0.01, - 0.0,0.9,0.9,0.99]), - [S,R]) - }. - - -sprinkler(P) :- - cloudy(C), - { P = sprinkler with p([f,t], - [0.5,0.9, - 0.5,0.1], - [C]) - }. - -rain(R) :- - cloudy(C), - { R = rain with p([f,t], [0.8,0.2, - 0.2,0.8], - [C]) }. - -cloudy(C) :- - { C = cloudy with p([f,t],[0.5,0.5],[]) }. - -