A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
An Adapter class to let BayesSampleInference implementations to be used in places where calls are being made to the BayesInference API. @author Ciaran O'Reilly
public static void bayesRejectionSamplingDemo() {
System.out.println("DEMO: Bayes Rejection Sampling N = " + NUM_SAMPLES);
System.out.println("==============================");
demoToothacheCavityCatchModel(new FiniteBayesModel(
BayesNetExampleFactory.constructToothacheCavityCatchNetwork(),
new BayesInferenceApproxAdapter(new RejectionSampling(),
NUM_SAMPLES)));
demoBurglaryAlarmModel(new FiniteBayesModel(
BayesNetExampleFactory.constructBurglaryAlarmNetwork(),
new BayesInferenceApproxAdapter(new RejectionSampling(),
NUM_SAMPLES)));
System.out.println("==============================");
}
public static void bayesLikelihoodWeightingDemo() {