Examples of CPSCompilerMain


Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

                   "defineEvidence( K, k1 );"+
                         "run(DMP);" )
  }
  
  public void mk_2d4c_bnet_Connected_with_a_bridge_test2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_2d4c_bnet_Connected_with_a_bridge +
                    "defineEvidence( L, 7.1 );"+
                    "defineEvidence( K, k1 );"+
                         "run(DMP);" )
    }
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

  public DiscreteDistribution_Test() { }
  
  //*** This works well at 6/16/2011 ***
  public void poisson_test() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
    cpsCompiler.compile(
        "defineNode(C1, DescriptionC0);"+
        "{defineState(Discrete, 1, 2, 3, 4, 5, 6);" +
        "p( C1 ) = PoissonDist( 2 );"+
        "}"+
             
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

      EDB.This().print("ROOT");
    }
 
  //*** This works well at 6/16/2011 ***
  public void poisson_test2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
    cpsCompiler.compile(
        "defineNode(C1, DescriptionC0);"+
        "{defineState(Discrete, 1, 2, 3, 4, 5, 6);" +
        "p( C1 ) = PoissonDist( 2 );"+
        "}"+
       
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  // Y_12_20_2011:
  // this test works well
  public void test_mk_hybridTest_2d2c_bnet() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_hybridTest_2d2c_bnet +
                   "defineEvidence( W, 2.1 );"+
                   "run(DMP);" );
       
        //Comparison
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.A.BEL").getNext("1").getData()0.539187 );   
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

 
  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  // Y_12_20_2011:
  // this test works well
  public void test_mk_hybridTest_2d2c_bnet_2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_hybridTest_2d2c_bnet +
                   "defineEvidence( W, 2.1 );"+
                   "defineEvidence( Y, 1 );"+
                   "run(DMP);" );
       
        //Comparison
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.X.BEL.MU").getMatrixData(),  -3.02003 );
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.X.BEL.SIGMA").getMatrixData()0.419442 );
    }
 
  public void test_mk_hybridTest_3pdp_bnet() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_hybridTest_3pdp_bnet +
                   "defineEvidence( Z, 1.2 );"+
                   "run(DMP);" );
       
        //Comparison
      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.A.BEL").getNext("1").getData()0.657008 );   
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.C.BEL").getNext("1").getData()0.548202 );   
    }
  
 
  public void test_mk_hybridTest_3pdp_bnet_2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_hybridTest_3pdp_bnet +
                   "defineEvidence( C, 1 );"+
                   "run(DMP);");
       
      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.Z.BEL.MU").getMatrixData()0.800000000000000 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.Z.BEL.SIGMA").getMatrixData()2.650000000000000 );       
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.Z.BEL.MU").getMatrixData()0.800000000000000 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.Z.BEL.SIGMA").getMatrixData()2.650000000000000 );       
    }
 
  public void test_mk_hybridTest_polyCLG_bnet() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile(
                   mk_hybridTest_polyCLG_bnet +
                   "defineEvidence( Z, 0.5 );"+
                   "defineEvidence( E, 3.0 );"+
                       "run(DMP);" );
       
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.W.BEL.MU").getMatrixData()4.14392 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.W.BEL.SIGMA").getMatrixData()1.87595 );       
    }
 
  public void test_mk_hybridTest_polyCLG_bnet_2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_hybridTest_polyCLG_bnet +
                   "defineEvidence( Y, 4 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.A.BEL").getNext().getData()0.8 );   
View Full Code Here

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.E.BEL.MU").getMatrixData()5.3);   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.E.BEL.SIGMA").getMatrixData()21.2616 );  
    }
 
  public void test7() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_hybridTest_polyCLG_bnet +
                   "defineEvidence( A, a1 );"+
                   "defineEvidence( Z, 2 );"+
                   "run(DMP);" );
               
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.