pt.tumba.ngram.bayes
Class Explanation

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

public class Explanation
extends java.lang.Object


Field Summary
(package private)  BayesNet bn
           
(package private)  BucketTree bucket_tree
           
(package private)  ProbabilityFunction[] results
           
 
Constructor Summary
Explanation(BayesNet b_n)
          Constructor for an Explanation.
 
Method Summary
(package private)  void do_inference_from_bucket_tree()
           
 void explanation()
          Calculation of an Explanation.
 void explanation(int explanation_status)
          Calculation of an Explanation accordingly to the flag explanation_status.
 void explanation(java.lang.String[] order)
          Calculation of an Explanation given order.
 void explanation(java.lang.String[] order, int explanation_status)
          Calculation of an Explanation accordingly to the flag explanation_status.
 void full_explanation()
          Calculation of a full Explanation.
 void full_explanation(java.lang.String[] order)
          Calculation of a full Explanation given order.
 ProbabilityFunction[] get_results()
          Get the results in the Explanation.
 void print()
          Print Explanation.
 void print(boolean should_print_bucket_tree)
          Print Explanation.
 void print(java.io.PrintStream out)
          Print Explanation.
 void print(java.io.PrintStream out, boolean should_print_bucket_tree)
          Print Explanation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bn

BayesNet bn

bucket_tree

BucketTree bucket_tree

results

ProbabilityFunction[] results
Constructor Detail

Explanation

public Explanation(BayesNet b_n)
Constructor for an Explanation.

Method Detail

explanation

public void explanation()
Calculation of an Explanation.


full_explanation

public void full_explanation()
Calculation of a full Explanation.


explanation

public void explanation(int explanation_status)
Calculation of an Explanation accordingly to the flag explanation_status.


explanation

public void explanation(java.lang.String[] order)
Calculation of an Explanation given order.


full_explanation

public void full_explanation(java.lang.String[] order)
Calculation of a full Explanation given order.


explanation

public void explanation(java.lang.String[] order,
                        int explanation_status)
Calculation of an Explanation accordingly to the flag explanation_status.


do_inference_from_bucket_tree

void do_inference_from_bucket_tree()

print

public void print()
Print Explanation.


print

public void print(java.io.PrintStream out)
Print Explanation.


print

public void print(boolean should_print_bucket_tree)
Print Explanation.


print

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


get_results

public ProbabilityFunction[] get_results()
Get the results in the Explanation.