aima.core.probability.example.FullJointDistributionToothacheCavityCatchModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
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);
}
}