All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
aima.core.probability.example.FullJointDistributionPairFairDiceModel Maven / Gradle / Ivy
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);
}
}