unbbayes.prs.bn
Class JunctionTree

java.lang.Object
  extended by unbbayes.prs.bn.JunctionTree
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JunctionTreeID

public class JunctionTree
extends Object
implements Serializable

Classe que representa uma ÔøΩrvore de JunÔøΩÔøΩo para Redes Bayesianas.

Author:
Michael, Rommel
See Also:
Serialized Form

Constructor Summary
JunctionTree()
          ContrÔøΩi uma nova ÔøΩrvore de junÔøΩÔøΩo.
 
Method Summary
protected  void absorb(Clique clique1, Clique clique2)
           
 void addSeparator(Separator sep)
           
protected  void coleteEvidencia(Clique clique)
          Processa a coleta de evidÔøΩncias.
 void consistency()
          Verifica a consistÔøΩncia global.
protected  void distributeEvidences(Clique clique)
          Processa a distribuiÔøΩÔøΩo de evidÔøΩncias.
 List<Clique> getCliques()
          Retorna o List com os cliques associados.
 float getN()
          Retorna a probabidade total estimada
 Separator getSeparator(Clique clique1, Clique clique2)
          Returns the Separator associated with these Cliques, assuming no orientation.
 Separator getSeparatorAt(int index)
           
 int getSeparatorsSize()
           
 void initBeliefs()
          Inicia crenÔøΩas da ÔøΩrvore.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JunctionTree

public JunctionTree()
ContrÔøΩi uma nova ÔøΩrvore de junÔøΩÔøΩo. Inicializa a lista de separadores e cliques.

Method Detail

getN

public float getN()
Retorna a probabidade total estimada

Returns:
probabilidade total estimada

addSeparator

public void addSeparator(Separator sep)

getSeparatorsSize

public int getSeparatorsSize()

getSeparatorAt

public Separator getSeparatorAt(int index)

getCliques

public List<Clique> getCliques()
Retorna o List com os cliques associados.

Returns:
Vetor com os cliques associados.

consistency

public void consistency()
                 throws Exception
Verifica a consistÔøΩncia global. Aplica o algoritmo Colete seguido do Distribua no clique raiz da ÔøΩrvore.

Throws:
Exception

coleteEvidencia

protected void coleteEvidencia(Clique clique)
                        throws Exception
Processa a coleta de evidÔøΩncias.

Parameters:
clique - clique.
Throws:
Exception

distributeEvidences

protected void distributeEvidences(Clique clique)
Processa a distribuiÔøΩÔøΩo de evidÔøΩncias.

Parameters:
clique - clique.

absorb

protected void absorb(Clique clique1,
                      Clique clique2)

initBeliefs

public void initBeliefs()
                 throws Exception
Inicia crenÔøΩas da ÔøΩrvore.

Throws:
Exception

getSeparator

public Separator getSeparator(Clique clique1,
                              Clique clique2)
Returns the Separator associated with these Cliques, assuming no orientation.

Parameters:
clique1 - Clique 1
clique2 - Clique 2
Returns:
The separator associated with these Cliques or null if this separator doesn't exist.


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.