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

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


                         "run(DMP);" );
        
  }
   
  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

      "{ defineState(Continuous);" +
      "p( SHeadaches | BrainTumor ) = 0.5*BrainTumor + NormalDist( 0, 0.5 ); }"  
  );
  
  public void test_coma1() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compileComaNet +
                  "defineEvidence( Coma, 12  );"+
                   "run(DMP);" );
       
        //Comparison  
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.MetaCancer.BEL.MU").getMatrixData()9.979981503692663 );
View Full Code Here

    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.SHeadaches.BEL.MU").getMatrixData()11.955290643220216 );
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.SHeadaches.BEL.SIGMA").getMatrixData(), 4.009419734747297 );
    }
 
  public void test_coma2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( ComaNet + 
                   "defineEvidence( Coma, 92.41  );"+
                   "defineEvidence( SHeadaches, 63.943  );"+
                   "run(DMP);" );
    }
View Full Code Here

                   "defineEvidence( SHeadaches, 63.943  );"+
                   "run(DMP);" );
    }
 
  public void test_coma3() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( ComaNet +
                   "defineEvidence( MetaCancer, 33.33);"+
                   "run(DMP);" );
    }
View Full Code Here

                   "defineEvidence( MetaCancer, 33.33);"+
                   "run(DMP);" );
    }
 
  public void test_coma4() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( ComaNet +
                  "defineEvidence( BrainTumor, 63.943 );"+
                       "run(DMP);" );
        
        //Comparison
    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.MetaCancer.BEL.MU").getMatrixData()17.166885068473395 );   
View Full Code Here

    check( EDB.This().get("ROOT.ENGINES.DMP.NODES.SHeadaches.BEL.SIGMA").getMatrixData()0.500000000000000 );
    }
 
 
  public void test_simulation() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile(   simulation +
                   "defineEvidence( speedChange, 1 );"+
                       "run(DMP);" );
        
      
    }
View Full Code Here

        
      
    }
 
  public void test_simulation2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile(     simulation2 +
                   "defineEvidence( speedChange, 1 );"+
                       "run(DMP);" );
        
      
    }
View Full Code Here

        
      
    }
 
  public void test_simulation3() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( simulation3 +
                   "defineEvidence( speedChange, 1 );"+
                       "run(DMP);" );
        
      
    }
View Full Code Here

        
      
    }
 
  public void test_simulation4() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( simulation4 +
                   "defineEvidence( cavitation, 1 );"+
                       "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.