pt.tumba.ngram.bayes
Class DSeparation

java.lang.Object
  extended by pt.tumba.ngram.bayes.DSeparation

 class DSeparation
extends java.lang.Object


Field Summary
(package private)  boolean[] above
           
private static int AFFECTING_VARIABLES
           
(package private)  boolean[] below
           
(package private)  BayesNet bn
           
private static int CONNECTED_VARIABLES
           
 
Constructor Summary
DSeparation(BayesNet b_n)
          Constructor for DSeparation object.
 
Method Summary
private  boolean adj(int index_from, int index_to, int flag)
           
 java.util.Vector all_affecting(int x)
          Returns a list of all variables whose distributions can affect the marginal posterior of a given variable.
 java.util.Vector all_connected(int x)
          Return a list of all variables that are d-connected to a given variable.
private  boolean is_separator(int i, int flag)
           
private  void separation_relations(int x, int flag)
           
private  java.util.Vector separation(int x, int flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bn

BayesNet bn

above

boolean[] above

below

boolean[] below

CONNECTED_VARIABLES

private static final int CONNECTED_VARIABLES
See Also:
Constant Field Values

AFFECTING_VARIABLES

private static final int AFFECTING_VARIABLES
See Also:
Constant Field Values
Constructor Detail

DSeparation

DSeparation(BayesNet b_n)
Constructor for DSeparation object.

Method Detail

all_connected

public java.util.Vector all_connected(int x)
Return a list of all variables that are d-connected to a given variable.


all_affecting

public java.util.Vector all_affecting(int x)
Returns a list of all variables whose distributions can affect the marginal posterior of a given variable.


separation_relations

private void separation_relations(int x,
                                  int flag)

separation

private java.util.Vector separation(int x,
                                    int flag)

is_separator

private boolean is_separator(int i,
                             int flag)

adj

private boolean adj(int index_from,
                    int index_to,
                    int flag)