Package edu.gmu.seor.prognos.unbbayesplugin.jt.prs.id

Examples of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.id.DecisionNode


   */
  public void removeVariable(Node variavel) {
    computeFactors();
    int index = variableList.indexOf(variavel);
    if (variavel.getType() == Node.DECISION_NODE_TYPE) {
      DecisionNode decision = (DecisionNode) variavel;
      int statesSize = variavel.getStatesSize();
      if (decision.hasEvidence()) {
        finding(variableList.size()-1, index, new int[variableList.size()], decision.getEvidence());
      } else {
//        sum(variaveis.size()-1, index, 0, 0);
        sum(index);
        for (int i = dataPT.size-1; i >= 0; i--) {
          dataPT.data[i] = dataPT.data[i] / statesSize;
View Full Code Here


   */ 
  public void removeVariable(Node variable, boolean normalize){
    computeFactors();
    int index = variableList.indexOf(variable);
    if (variable.getType() == Node.DECISION_NODE_TYPE) {
      DecisionNode decision = (DecisionNode) variable;
      int statesSize = variable.getStatesSize();
      if (decision.hasEvidence()) {
        finding(variableList.size()-1, index, new int[variableList.size()], decision.getEvidence());
      } else {
        sum(index);
        for (int i = dataPT.size-1; i >= 0; i--) {
          dataPT.data[i] = dataPT.data[i] / statesSize;
        }
View Full Code Here

TOP

Related Classes of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.id.DecisionNode

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.