pt.tumba.ngram.bayes
Class Inference

java.lang.Object
  extended by pt.tumba.ngram.bayes.Inference
Direct Known Subclasses:
QuasiBayesInference

public class Inference
extends java.lang.Object


Field Summary
protected  BayesNet bn
           
protected  Bucket[] bucket_for_variable
           
protected  java.util.Vector bucket_forest
           
protected  BucketTree bucket_tree
           
protected  boolean do_produce_clusters
           
protected static int EXPLANATION
           
protected static int FULL_EXPLANATION
           
protected static int IGNORE_EXPLANATION
           
protected  ProbabilityFunction result
           
 
Constructor Summary
Inference(BayesNet b_n, boolean dpc)
           
 
Method Summary
private  void add_bucket_tree()
           
 boolean areClustersProduced()
          Get the status of the clustering process.
 BayesNet get_bayes_net()
          Get the BayesNet.
 BucketTree get_bucket_tree()
          Get the BucketTree.
 ProbabilityFunction get_result()
          Get the current result of the Inference.
 void inference()
          Calculation of marginal posterior distribution.
private  void inference(Ordering or)
           
protected  void inference(java.lang.String queried_variable_name)
          Calculation of marginal posterior distribution for an arbitrary BayesNet.
protected  void inference(java.lang.String[] order)
          Calculation of marginal posterior distribution using a given ordering, and an arbitrary BayesNet.
 void print()
          Print the Inference.
 void print(boolean should_print_bucket_tree)
          Print the Inference.
 void print(java.io.PrintStream out)
          Print the Inference.
 void print(java.io.PrintStream out, boolean should_print_bucket_tree)
          Print the Inference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bn

protected BayesNet bn

bucket_tree

protected BucketTree bucket_tree

bucket_for_variable

protected Bucket[] bucket_for_variable

bucket_forest

protected java.util.Vector bucket_forest

result

protected ProbabilityFunction result

do_produce_clusters

protected boolean do_produce_clusters

IGNORE_EXPLANATION

protected static final int IGNORE_EXPLANATION
See Also:
Constant Field Values

EXPLANATION

protected static final int EXPLANATION
See Also:
Constant Field Values

FULL_EXPLANATION

protected static final int FULL_EXPLANATION
See Also:
Constant Field Values
Constructor Detail

Inference

public Inference(BayesNet b_n,
                 boolean dpc)
Method Detail

inference

public void inference()
Calculation of marginal posterior distribution.


inference

protected void inference(java.lang.String queried_variable_name)
Calculation of marginal posterior distribution for an arbitrary BayesNet.


inference

protected void inference(java.lang.String[] order)
Calculation of marginal posterior distribution using a given ordering, and an arbitrary BayesNet.


inference

private void inference(Ordering or)

add_bucket_tree

private void add_bucket_tree()

print

public void print()
Print the Inference.


print

public void print(java.io.PrintStream out)
Print the Inference.


print

public void print(boolean should_print_bucket_tree)
Print the Inference.


print

public void print(java.io.PrintStream out,
                  boolean should_print_bucket_tree)
Print the Inference.


get_bucket_tree

public BucketTree get_bucket_tree()
Get the BucketTree.


get_bayes_net

public BayesNet get_bayes_net()
Get the BayesNet.


get_result

public ProbabilityFunction get_result()
Get the current result of the Inference.


areClustersProduced

public boolean areClustersProduced()
Get the status of the clustering process.