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

Examples of edu.gmu.seor.prognos.unbbayesplugin.cps.CPSCompilerMain.InitCompiler()


    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.shipRCSchange.BEL.SIGMA").getMatrixData()0.186724 );   
  }
 
  public void test7(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_bnet_8 +
                   "defineEvidence( speedChange, 2.44765 );"+
                   "defineEvidence( cavitation, -0.212527 );"+
                   "run(DMP);" );
View Full Code Here


    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.propellerTurnCount.BEL.SIGMA").getMatrixData()0.5 );
  }
 
  public void test8(){
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile
                   mk_uc3_withcontinuous_bnet_8 +
                   "defineEvidence( hasAggressiveBehavior, True );"+
                   "defineEvidence( cavitation, -3.5763 );"+
                   "run(DMP);" );
View Full Code Here

    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.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 );"+
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

    }
 
  //*** 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 == 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);" );
       
       
View Full Code Here

    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

    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

      "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);" );
       
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.