
aima.core.probability.example.FullJointDistributionMeningitisStiffNeckModel 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 FullJointDistributionMeningitisStiffNeckModel extends
FullJointDistributionModel {
public FullJointDistributionMeningitisStiffNeckModel() {
super(new double[] {
// Meningitis * StiffNeck = 4 possible worlds
// Meningitis = true, StiffNeck = true
0.000014, // i.e 1/50000 * 0.7
// Meningitis = true, StiffNeck = false
0.000006, // i.e. (1/50000) * 0.3
// Meningitis = false, StiffNeck = true
0.009986, // i.e. 0.01 - 0.000014
// Meningitis = false, StiffNeck = false
0.989994 // i.e. 0.99 - 0.000006
}, ExampleRV.MENINGITIS_RV, ExampleRV.STIFF_NECK_RV);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy