Package unbbayes.prs.bn

Examples of unbbayes.prs.bn.PotentialTable


      // add second and next states      
      AddNewStatesToBNNode( uNode, stateIndexMap, c, stateFirst.getNext() );
    
      /////////////////////////////////////////////////////////////////////////////////////
      //3. fill zero on table
      PotentialTable auxTab = (PotentialTable) ((IRandomVariable) uNode).getProbabilityFunction();
      int curStateSize = uNode.getStatesSize()
     
      for( INode parent : uNode.getParentNodes() )
        curStateSize *= parent.getStatesSize();
     
      for( int i = 0; i < curStateSize; i++ )
        auxTab.addValueAt(i, 0);
     
      auxTab.setTableSize(curStateSize);
   
      /////////////////////////////////////////////////////////////////////////////////////
      //4. add new values in the states of BN
      // EX]
      // CPT[Isa]parent1.state1{parent1.Name}[Isa]parent2.state1{parent2.Name}[Next]cur.state1[Next]cur.state2
View Full Code Here

TOP

Related Classes of unbbayes.prs.bn.PotentialTable

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.