AIMA.Probability.Example.BayesNetExampleFactory.construct2FairDiceNetwor C# (CSharp) Method

construct2FairDiceNetwor() public static method

public static construct2FairDiceNetwor ( ) : BayesianNetwork
return BayesianNetwork
        public static BayesianNetwork construct2FairDiceNetwor()
        {
            FiniteNode dice1 = new FullCPTNode(ExampleRV.DICE_1_RV, new double[]
                                                                        {
                                                                            1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0,
                                                                            1.0/6.0
                                                                        });
            FiniteNode dice2 = new FullCPTNode(ExampleRV.DICE_2_RV, new double[]
                                                                        {
                                                                            1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0, 1.0/6.0,
                                                                            1.0/6.0
                                                                        });

            return new BayesNet(dice1, dice2);
        }