A Bayesian network calculator for both exact (enumeration) and approximate inference (rejection sampling, likelihood weighting).