// Sprinkler=false
// sample P(Rain | Cloudy = true) = <0.8, 0.2>; suppose Rain=true
MockRandomizer r = new MockRandomizer(new double[] { 0.5, 0.5 });
LikelihoodWeighting lw = new LikelihoodWeighting(r);
double[] estimate = lw.likelihoodWeighting(
new RandomVariable[] { ExampleRV.RAIN_RV }, e, bn, 1)
.getValues();
// Here the event [true,false,true,true] should have weight 0.45,
// and this is tallied under Rain = true, which when normalized