All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aima.core.probability.example.FullJointDistributionToothacheCavityCatchModel Maven / Gradle / Ivy

Go to download

AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.

There is a newer version: 3.0.0
Show newest version
package aima.core.probability.example;

import aima.core.probability.full.FullJointDistributionModel;

/**
 * 
 * @author Ciaran O'Reilly
 *
 */
public class FullJointDistributionToothacheCavityCatchModel extends
		FullJointDistributionModel {

	public FullJointDistributionToothacheCavityCatchModel() {
		super(new double[] {
				// Toothache = true, Cavity = true, Catch = true
				0.108,
				// Toothache = true, Cavity = true, Catch = false
				0.012,
				// Toothache = true, Cavity = false, Catch = true
				0.016,
				// Toothache = true, Cavity = false, Catch = false
				0.064,
				// Toothache = false, Cavity = true, Catch = true
				0.072,
				// Toothache = false, Cavity = true, Catch = false
				0.008,
				// Toothache = false, Cavity = false, Catch = true
				0.144,
				// Toothache = false, Cavity = false, Catch = false
				0.576 }, ExampleRV.TOOTHACHE_RV, ExampleRV.CAVITY_RV,
				ExampleRV.CATCH_RV);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy