Package unbbayes.prs.bn

Examples of unbbayes.prs.bn.JunctionTreeAlgorithm


    System.out.println("*** JT ***");
   
    discretizedNet.setCreateLog(false);
    long time = System.nanoTime();
   
    IInferenceAlgorithm algorithm = new JunctionTreeAlgorithm();
    algorithm.setNetwork(discretizedNet);
    algorithm.run()
   
    for (String key : mapEvindeces.keySet()){
      String e = mapEvindeces.get(key);
      ProbabilisticNode findingNode = (ProbabilisticNode)discretizedNet.getNode(key);
      if (e.equalsIgnoreCase("True"))
View Full Code Here


    System.out.println("test_JT");
   
    pn.setCreateLog(false);
    long time = System.nanoTime();
   
    IInferenceAlgorithm algorithm = new JunctionTreeAlgorithm();
    algorithm.setNetwork(pn);
    algorithm.run();
    System.out.println("compileJT:  " + (System.nanoTime()- time) + "  nano sec");
    // insert evidence (finding)
  //  int indexFirstNode = 0;
  //  ProbabilisticNode findingNode = (ProbabilisticNode)pn.getNodes().get(indexFirstNode);
  //  int indexFirstState = 0;
View Full Code Here

   }
  
  public void test_JT(){
    pn.setCreateLog(false);
   
    IInferenceAlgorithm algorithm = new JunctionTreeAlgorithm();
    algorithm.setNetwork(pn);
    algorithm.run();
     
    try {
          pn.updateEvidences();
           
        } catch (Exception exc) {
View Full Code Here

    System.out.println("*** JT ***");
   
    pn.setCreateLog(false);
    long time = System.nanoTime();
   
    IInferenceAlgorithm algorithm = new JunctionTreeAlgorithm();
    algorithm.setNetwork(pn);
    algorithm.run();
   
    // insert evidence (finding)
    ProbabilisticNode findingNode = (ProbabilisticNode)pn.getNode("isJettisoningCargo_ship1");
    findingNode.addFinding(0);
    findingNode = (ProbabilisticNode)pn.getNode("hasWeaponVisible_ship1");
View Full Code Here

TOP

Related Classes of unbbayes.prs.bn.JunctionTreeAlgorithm

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.