pt.tumba.ngram.bayes
Class QuasiBayesInference

java.lang.Object
  extended by pt.tumba.ngram.bayes.Inference
      extended by pt.tumba.ngram.bayes.QuasiBayesInference

public class QuasiBayesInference
extends Inference


Field Summary
(package private)  boolean is_inference_without_local_neighborhoods
           
(package private)  ProbabilityFunction list_of_local_neighborhood_results
           
(package private)  BayesNet original_bn
           
 
Fields inherited from class pt.tumba.ngram.bayes.Inference
bn, bucket_for_variable, bucket_forest, bucket_tree, do_produce_clusters, EXPLANATION, FULL_EXPLANATION, IGNORE_EXPLANATION, result
 
Constructor Summary
QuasiBayesInference(BayesNet b_n, boolean dpc)
          Constructor for a QBInference.
 
Method Summary
protected  void do_quasi_bayesian_inference()
           
private  void inference_with_local_neighborhoods()
           
private  void inference_without_local_neighborhoods()
           
 void inference(java.lang.String queried_variable_name)
          Calculation of marginal posterior distribution for an arbitrary BayesNet.
 void inference(java.lang.String[] order)
          Calculation of marginal posterior envelope using a given ordering.
private  void transform_network()
           
private  java.util.Vector transform_probability_functions_array()
           
private  void transform_probability_variables_array(java.util.Vector auxs)
           
 
Methods inherited from class pt.tumba.ngram.bayes.Inference
areClustersProduced, get_bayes_net, get_bucket_tree, get_result, inference, print, print, print, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

original_bn

BayesNet original_bn

list_of_local_neighborhood_results

ProbabilityFunction list_of_local_neighborhood_results

is_inference_without_local_neighborhoods

boolean is_inference_without_local_neighborhoods
Constructor Detail

QuasiBayesInference

public QuasiBayesInference(BayesNet b_n,
                           boolean dpc)
Constructor for a QBInference.

Method Detail

transform_network

private void transform_network()

transform_probability_functions_array

private java.util.Vector transform_probability_functions_array()

transform_probability_variables_array

private void transform_probability_variables_array(java.util.Vector auxs)

inference

public void inference(java.lang.String queried_variable_name)
Description copied from class: Inference
Calculation of marginal posterior distribution for an arbitrary BayesNet.

Overrides:
inference in class Inference

inference

public void inference(java.lang.String[] order)
Calculation of marginal posterior envelope using a given ordering.

Overrides:
inference in class Inference

do_quasi_bayesian_inference

protected void do_quasi_bayesian_inference()

inference_with_local_neighborhoods

private void inference_with_local_neighborhoods()

inference_without_local_neighborhoods

private void inference_without_local_neighborhoods()