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

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


        EquationOperator e = new EquationOperator();
        e.convert( EDB.This().get("ROOT.NODES.E.EQUATION"), "X" );
  }
 
  public void test4() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( testNet +
            "defineNode(E, DescriptionE);"+
          "{ defineState(Continuous);" +
          "p( E | X ) =  Root(R, 2) * Log( X, e ) - C; }"
        );
           
View Full Code Here


        EDBUnit r = e.convert( EDB.This().get("ROOT.NODES.E.EQUATION"), "X" );
        r.print("Inv ");
  }
 
  public void test5() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( testNet +
            "defineNode(E, DescriptionE);"+
          "{ defineState(Continuous);" +
          "p( E | X ) =  5 * X + R * 3; }"
        );
           
View Full Code Here

        EquationOperator e = new EquationOperator();
        e.convert( EDB.This().get("ROOT.NODES.E.EQUATION"), "X" );
  }
 
  public void test6() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( "defineInferenceEngine( DMP );" + testNet +
            "defineNode(E, DescriptionE);"+
          "{ defineState(Continuous);" +
          "p( E | X, T ) =  X - 2 * T;}"
          //"p( E | X, T ) =  3*X-2;}"
          //"p( E | X, T ) =  3*X-normal();}"
 
View Full Code Here

   //     System.out.println(str);
  }
 

  public void test7() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compiletestNet2 +
                   "run(DMP);" );
       
        EDB.This().get("ROOT").print("");
        EquationOperator e = new EquationOperator();
       
View Full Code Here

  "}" );
 
    //*** This works well at 6/16/2011 ***  
  public void test_Asia ()
  {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
       
        cpsCompiler.compile( asiaNet +
           "defineEvidence( X, abnormal );"+
           "defineEvidence( D, present );"+
          "run(DMP);"
       );
       
View Full Code Here

  
  /*
   * okay at 7-7-2011
   */
  public void test2() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
    cpsCompiler.compile(
        "defineNode(C1, DescriptionC0);"+
        "{defineState(Discrete, 1, 2);" +
        "p( C1 ) = { 1: 0.2; 2: 0.8;  } " +
        "}" +
        "defineNode(C0, DescriptionC0);"+
View Full Code Here

 
  /*
   * okay at 7-11-2011
   */
  public void test4() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
    cpsCompiler.compile(
        "defineNode(C1, DescriptionC0);"+
        "{defineState(Discrete, 1, 2);" +
        "p( C1 ) = { 1: 0.2; 2: 0.8;  } " +
        "}" +
        "defineNode(C2, DescriptionC2);"+
View Full Code Here

 
  /*
   * okay at 7-11-2011
   */
  public void test5() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
    cpsCompiler.compile(
        "defineNode(C1, DescriptionC0);"+
        "{defineState(Discrete, 1, 2);" +
        "p( C1 ) = { 1: 0.2; 2: 0.8;  } " +
        "}" +
        "defineNode(C2, DescriptionC2);"+
View Full Code Here

       
      EDB.This().print("ROOT");
    }
 
  public void test3() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
    cpsCompiler.compile(
        "defineNode(C1, DescriptionC1);"+
        "{defineState(Discrete, 1, 2, 3, 4);" +
        "p( C1 ) = { 1: 0.4; 2: 0.3; 3: 0.2; 4: 0.1;  } " +
        "}" +
        "defineNode(C2, DescriptionC2);"+
View Full Code Here

        "p( L | Y ) = 0.5 * Y + NormalDist( 0, 1 ); } " 
  );
 
 
  public void mk_2d4c_bnet_Connected_4States_test() {
    CPSCompilerMain cpsCompiler = new CPSCompilerMain();
        cpsCompiler.InitCompiler();
        cpsCompiler.compile( mk_2d4c_bnet_Connected_4States +
                   "defineEvidence( Z, 7.1 );"+
                   "defineEvidence( K, k3 );"+
                         "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.