-
Below is the C# code for the classic wet grass/sprinkler/rain Bayesian network, as found in Kevin Murphy's tutorial , amongst other places. Notice that the conditional probability tables (CPTs) are represented by if blocks or nested if blocks, rather than in tabular form. In general, this allows...