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

Examples of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.Node$NodeNameChangedEvent


    if (factorsPT == null || factorsPT.length < sizeVariaveis) {
       factorsPT = new int[sizeVariaveis];
    }
   
    factorsPT[0] = 1;
    Node auxNo;
    for (int i = 1; i < sizeVariaveis; i++) {
      auxNo = variableList.get(i-1);
      factorsPT[i] = factorsPT[i-1] * auxNo.getStatesSize();
    }
  }
 
View Full Code Here


    int sizeVariaveis = variableList.size();
    if (factorsPT == null || factorsPT.length < sizeVariaveis) {
       factorsPT = new int[sizeVariaveis];
    }
    factorsPT[0] = 1;
    Node auxNo;
    for (int i = 1; i < sizeVariaveis; i++) {
      auxNo = variableList.get(i-1);
      factorsPT[i] = factorsPT[i-1] * auxNo.getStatesSize();
    }
  }
 
View Full Code Here

 
  /**
   *  Faz o processo de triangula��o da rede.
   */
  private void triangula() {   
    Node aux;
    ArrayList<Node> auxNos;
    auxNos = SetToolkit.clone(nodeList);
    removeUtilityNodes(auxNos);
    copiaNos = SetToolkit.clone(auxNos);
    int sizeDecisao = decisionNodes.size();
    for (int i = 0; i < sizeDecisao; i++) {
      aux = decisionNodes.get(i);
      auxNos.remove(aux);
      auxNos.removeAll(aux.getParents());
    }

    oe = new ArrayList<Node>(copiaNos.size());

    while (minimumWeightElimination(auxNos))
      ;

    //        int index;
    for (int i = decisionNodes.size() - 1; i >= 0; i--) {
      aux = decisionNodes.get(i);
      oe.add(aux);
      int sizeAdjacentes = aux.getAdjacents().size();
      for (int j = 0; j < sizeAdjacentes; j++) {
        Node v = aux.getAdjacents().get(j);
        v.getAdjacents().remove(aux);
      }
      

      auxNos = SetToolkit.clone(aux.getParents());
      auxNos.removeAll(decisionNodes);
      auxNos.removeAll(oe);
      for (int j = 0; j < i; j++) {
        Node decision = decisionNodes.get(j);
        auxNos.removeAll(decision.getParents());
      }

      while (minimumWeightElimination(auxNos))
        ;
    }
View Full Code Here

   * Triangulation for CLG , where continous nodes have to be eliminated before descrete nodes
   */
  private ArrayList<Node> oe1 = new ArrayList<Node>();
 
  private void triangulaCLG(boolean b) {   
    Node aux;
    ArrayList<Node> auxNos;
   
//    System.out.println("The adjacent nodes after decomposition are");
//    for(Node n: nodeList) System.out.println(n.getAdjacents()+"nod index is"+n.getIndex());

View Full Code Here

   *
   * @throws Exception se a tabela n�o soma 100 para todos os estados fixada
   *           qualquer configura��o de estados dos pais.
   */
  public void verifyConsistency() throws Exception {
    Node auxNo = variableList.get(0);
    int noLin = auxNo.getStatesSize();

    /* Check if the node represents a numeric attribute */
    if (noLin == 0) {
      /*
       * The node represents a numeric attribute which has no potential
       * table. Just Return.
       */
      return;
    }
   
    int noCol = 1;
    int sizeVariaveis = variableList.size();
    for (int k = 1; k < sizeVariaveis; k++) {
      auxNo = variableList.get(k);
      noCol *= auxNo.getStatesSize();
    }

    float soma;
    for (int j = 0; j < noCol; j++) {
      soma = 0;
View Full Code Here

TOP

Related Classes of edu.gmu.seor.prognos.unbbayesplugin.jt.prs.Node$NodeNameChangedEvent

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.