Package aima.core.probability.proposition

Examples of aima.core.probability.proposition.SubsetProposition


        ExampleRV.DICE_2_RV);
    Assert.assertEquals(2.0 / 36.0, model.prior(total11), DELTA_THRESHOLD);
    EquivalentProposition doubles = new EquivalentProposition("Doubles",
        ExampleRV.DICE_1_RV, ExampleRV.DICE_2_RV);
    Assert.assertEquals(1.0 / 6.0, model.prior(doubles), DELTA_THRESHOLD);
    SubsetProposition evenDice1 = new SubsetProposition("EvenDice1",
        new FiniteIntegerDomain(2, 4, 6), ExampleRV.DICE_1_RV);
    Assert.assertEquals(0.5, model.prior(evenDice1), DELTA_THRESHOLD);
    SubsetProposition oddDice2 = new SubsetProposition("OddDice2",
        new FiniteIntegerDomain(1, 3, 5), ExampleRV.DICE_2_RV);
    Assert.assertEquals(0.5, model.prior(oddDice2), DELTA_THRESHOLD);

    // pg. 485 AIMA3e
    AssignmentProposition dice1Is5 = new AssignmentProposition(
View Full Code Here

TOP

Related Classes of aima.core.probability.proposition.SubsetProposition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.