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()5.42194);   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()1.99636 );
  }
 
  public void test9(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_bnet_8 +
                   "defineEvidence( hasWeaponVisible, True );"+
                   "defineEvidence( shipRCSchange, 0.369001 );"+
                   "run(DMP);" );
               
View Full Code Here


      check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.MU").getMatrixData()4.94617 );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()26.8154 );
  }
 
  public void test10(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_bnet_8 +
                   "defineEvidence( cavitation, -1.72375 );"+
                   "defineEvidence( shipRCSchange, 1.22912 );"+
                   "defineEvidence( propellerTurnCount, 2.94978 );"+
                   "run(DMP);" );
View Full Code Here

    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.turnRate.BEL.MU").getMatrixData()4.6102  );   
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.turnRate.BEL.SIGMA").getMatrixData()0.485923 );
  }
 
  public void test11(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_bnet_8 +
                   "defineEvidence( hasWeaponVisible, True );"+
                   "defineEvidence( isJettisoningCargo, True );"+
                   "run(DMP);" );
               
View Full Code Here

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

      EDB.This().print("ROOT");
    }
 
  //*** This works well at 6/16/2011 ***
  public void 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

      " else if( A == 1 && B == 2 ){ -1*X+Y + NormalDist( -2, 0.5 ); } " +
      " else if( A == 2 && B == 2  ){ 0.5*X+Y + NormalDist( 0, 0.5 ); } " +
      "}" );
 
  public void test() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_hybridTest_2d1d2c_bnet  +
                  "defineEvidence( C, c1 );"+
                  "run(LW, 100);" );
       
       
        //for printing all information
View Full Code Here

    X.bel - mu: -3.0148, Sigma: 0.970234.
    Y.bel - mu: 3.01022, Sigma: 0.506678.
    W.bel - mu: 1.3579, Sigma: 1.78179.
   */
  public void test2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_hybridTest_2d2c_bnet  +
                  "defineEvidence( A, 2 );"+
                         "run(LW, 1000);" );
               
    }
View Full Code Here

    X.bel - mu: -2.38967, Sigma: 0.612017.
    Y.bel - mu: 2.79354, Sigma: 0.554956. 
   */
 
  public void test1() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_hybridTest_2d2c_bnet  +
                  "defineEvidence( W, 2.1 );"+
                         "run(LW, 1000);" );
               
    }
View Full Code Here

      "{ defineState(Continuous);" +
      "p( SHeadaches | BrainTumor ) = 1*BrainTumor + NormalDist( 0, 0.5 ); }"  
  );
  
  public void test1() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compileComaNet +
                   "defineEvidence( Coma, 92.41 );"+
                  "defineEvidence( SHeadaches, 63.943 );"+
                   "run(DMP);" );
       
        //Comparison
View Full Code Here

    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.Coma.EVIDENCE").getData()92.41 );
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.SHeadaches.EVIDENCE").getData()63.943 );
    }
 
  public void test2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( ComaNet +
                  "defineEvidence( MetaCancer, 33.33 );"+
                   "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.