Package edu.gmu.seor.prognos.unbbayesplugin.cps

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


      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()13.6822 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()52.2911 );
  }
 
  public void test12(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_bnet_8 +
                   "defineEvidence( hasWeaponVisible, True );"+
                   "defineEvidence( isJettisoningCargo, True );"+
                   "defineEvidence( cavitation, -0.499116 );"+
                   "run(DMP);" );
View Full Code Here


        "{ defineState(Continuous);" +
        "p( L | Y ) = 0.5 * Y + NormalDist( 0, 1 ); } " 
  );
    
  public void mk_2d4c_bnet_Connected_with_a_bridge4_test1() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_2d4c_bnet_Connected_with_a_bridge4 +
                    "defineEvidence( Z, 7.1 );"
                         "run(DMP);" )
       
        //Comparison
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.K.BEL").getNext().getData()0.81484 );   
View Full Code Here

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.L.BEL.MU").getMatrixData()1.57019 );
      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.L.BEL.SIGMA").getMatrixData(), 1.23628 );
    }
 
  public void mk_2d4c_bnet_Connected_with_a_bridge4_test2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_2d4c_bnet_Connected_with_a_bridge4 +
                    "defineEvidence( Z, 7.1 );"+
                    "defineEvidence( L, 2.1 );"+
                         "run(DMP);" )
       
        //Comparison
View Full Code Here

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.W.BEL.MU").getMatrixData()4.53154 );
      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.W.BEL.SIGMA").getMatrixData()1.38283 );
    }
    
  public void mk_2d4c_bnet_Connected_with_a_bridge_test() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_2d4c_bnet_Connected_with_a_bridge +
                     "defineEvidence( Z, 7.1 );"+
                     "defineEvidence( T, t1 );"+
                         "run(DMP);" )
       
        //Comparison
View Full Code Here

      "p( Z | W ) = 0.5*W + NormalDist( 0, 1 ); " +
      "}"  
     );
 
  public void test() { 
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( CLG_example01_WS  +
                   //"defineEvidence( C, c2 );"+
                   "defineEvidence( Z, -33 );"+
                  //"defineEvidence( X, 20 );"+
                         "run(JT);" );          
    }
View Full Code Here

        "p( L | Y ) = 0.5*Y + NormalDist( 0, 1 ); " +
        "}" 
  );
  
  public void mk_2d4c_bnet_Connected_test() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_2d4c_bnet_Connected +
                //   "defineEvidence( L, 2 );"+
                   "defineEvidence( K, k1 );"+
                         "run(DMP);" );
       
        //Comparison
View Full Code Here

  
   
 
 
  public void test6() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_hybridTest_1d2c_connected_bnet +
                     "defineEvidence( W, 3 );"+
                         "run(DMP);" );
       
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.Y.BEL.MU").getMatrixData()1.2014636308259241 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.Y.BEL.SIGMA").getMatrixData(), 0.3177504308442054 );
View Full Code Here

        "p( L | Y ) = 0.5 * Y + NormalDist( 0, 1 ); } " 
  );
 
  
  public void mk_2d4c_bnet_Connected_test() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_2d4c_bnet_Connected +
                  "defineEvidence( Z, 7.1 );"+
                   "defineEvidence( K, k1 );"+
                         "run(DMP);" );
       
        //Comparison
View Full Code Here

       check( EDB.This().get("ROOT.ENGINES.DMP.NODES.L.BEL.MU").getMatrixData()3.2057742950145727 );
      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.L.BEL.SIGMA").getMatrixData()1.3026694802294383 );
    }
  
  public void mk_2d4c_bnet_Connected_with_a_bridge_test() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_2d4c_bnet_Connected_with_a_bridge +
                    "defineEvidence( Z, 7.1 );"+
                    "defineEvidence( K, k1 );"+
                         "run(DMP);" );
       
        //Comparison
View Full Code Here

       check( EDB.This().get("ROOT.ENGINES.DMP.NODES.L.BEL.MU").getMatrixData()3.2057742950145727 );
      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.L.BEL.SIGMA").getMatrixData()1.3026694802294383 );
    }
      
  public void mk_2d4c_bnet_Connected_test2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_2d4c_bnet_Connected +
                  "defineEvidence( L, 7.1 );"+
                   "defineEvidence( K, k1 );"+
                         "run(DMP);" )
  }
View Full Code Here

TOP

Related Classes of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain

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.