Package aima.core.probability.proposition

Examples of aima.core.probability.proposition.IntegerSumProposition


            DELTA_THRESHOLD);
      }
    }

    // Test Sets of events defined via constraint propositions
    IntegerSumProposition total11 = new IntegerSumProposition("Total11",
        new FiniteIntegerDomain(11), ExampleRV.DICE_1_RV,
        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);
View Full Code Here


          DELTA_THRESHOLD);
    }

    //
    // Test Sets of events
    IntegerSumProposition total11 = new IntegerSumProposition("Total",
        new FiniteIntegerDomain(11), ExampleRV.DICE_1_RV,
        ExampleRV.DICE_2_RV);
    // P<>(Total = 11) = <2.0/36.0>
    Assert.assertArrayEquals(new double[] { 2.0 / 36.0 }, model
        .priorDistribution(total11).getValues(), DELTA_THRESHOLD);
View Full Code Here

TOP

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

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.