Package unbbayes.prs.bn

Examples of unbbayes.prs.bn.TreeVariable.addFinding()


              // unfortunately, the network managed by the algorithm and the one linked to the SSBN may not be the same (because algorithm may instantiate another network)
              boolean isStateInNode = false;   // indicates if node contains the specified state (true if evidence is to a valid state)
              for(int i = 0; i < node.getStatesSize(); i++){
                // check if the name of the state in the SSBN node is the same in the node in actual network managed by the algorithm
                if(node.getStateAt(i).equals(stateName)){
                  node.addFinding(i);
//                ssbnFindingNode.getProbNode().addFinding(i);  // add to original node as well, just to make sure
                  isStateInNode = true;
                  break;
                }
              }
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.