
aima.core.probability.example.FullJointDistributionPairFairDiceModel 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 FullJointDistributionPairFairDiceModel extends
FullJointDistributionModel {
public FullJointDistributionPairFairDiceModel() {
super(new double[] {
// Dice1 * Dice 2 = 36 possible worlds
1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
//
1.0 / 36.0, 1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
//
1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
//
1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0,
1.0 / 36.0,
1.0 / 36.0,
//
1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0,
1.0 / 36.0,
//
1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0, 1.0 / 36.0,
1.0 / 36.0 }, ExampleRV.DICE_1_RV, ExampleRV.DICE_2_RV);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy