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

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


      "p( cavitation | speedChange,turnRate ) =  speedChange - 0.5* Log( turnRate, e ) +  NormalDist( 5, 3 );" +
    "}"
      );

  public void test1(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.4 );   
      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasWeaponVisible.BEL").getNext().getData()0.31 );   
View Full Code Here


      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()1468.2731 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()5105276.66598 );
  }
 
  public void test2(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( cavitation, 8 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.775025 );   
View Full Code Here

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()259.027 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()243683.1598 );
  }
 
  public void test3(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( speedChange, 6.99739 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.130375 );   
View Full Code Here

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()546.88733 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()1.0 );
  }
 
  public void test4(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( turnRate, 15.2426 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.984716 );   
View Full Code Here

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()152.319 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()190951.494);
  }
 
  public void test5(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( shipRCSchange, 3.42548 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.459848 );   
View Full Code Here

    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()1333.58 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()4761383.12022 );
  }
 
  public void test6(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( propellerTurnCount, 2940.77 );"+
                   "run(DMP);" );
               
        check( EDB.This().get("ROOT.ENGINES.DMP.NODES.hasAggressiveBehavior.BEL").getNext().getData()0.000963292 );   
View Full Code Here

    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.shipRCSchange.BEL.MU").getMatrixData()1.57544);   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.shipRCSchange.BEL.SIGMA").getMatrixData()1.01927 );   
  }
 
  public void test7(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( speedChange, 6.50139 );"+
                   "defineEvidence( cavitation, 11.2331 );"+
                   "run(DMP);" );
               
View Full Code Here

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()333.0334 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()1.0 );
  }
 
  public void test8(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( hasWeaponVisible, True );"+
                   "defineEvidence( cavitation, 8.80015 );"+
                   "run(DMP);" );
               
View Full Code Here

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()144.211 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()75783.3194 );
  }
 
  public void test9(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( hasWeaponVisible, True );"+
                   "defineEvidence( shipRCSchange, 1.579 );"+
                   "run(DMP);" );
               
View Full Code Here

      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()328.386 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()1049155.3287 );
  }
 
  public void test10(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_no_link_bnet +
                   "defineEvidence( cavitation, 12.166 );"+
                   "defineEvidence( shipRCSchange, 1.45468 );"+
                   "defineEvidence( propellerTurnCount, 1281.82 );"+
                   "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.