pt.tumba.ngram.bayes
Class QuasiBayesConvertInterchangeFormat

java.lang.Object
  extended by pt.tumba.ngram.bayes.ConvertInterchangeFormat
      extended by pt.tumba.ngram.bayes.QuasiBayesConvertInterchangeFormat

public class QuasiBayesConvertInterchangeFormat
extends ConvertInterchangeFormat

Class that converts the contents of an InterchangeFormat * object to the BayesNet object in the BayesianNetworks * package *


Field Summary
 
Fields inherited from class pt.tumba.ngram.bayes.ConvertInterchangeFormat
ifo
 
Constructor Summary
QuasiBayesConvertInterchangeFormat(InterchangeFormat inter_format)
           
 
Method Summary
(package private)  void finish_values(double[] values, double[][] extreme_points)
          Perform final calculations in the values *
protected  ProbabilityFunction get_probability_function(BayesNet bn, IFProbabilityFunction upf)
          Method that does all the work involved in creating a * ProbabilityFunction object out of the definition * found by the parser and the information contained in * the BayesNet object; the ProbabilityFunction object may * in fact be a Quasi-Bayesian model.
(package private)  void process_defaults(IFProbabilityFunction upf, double[] values, double[][] extreme_points, int jump)
          Insert default values from the contents of the first * specification of defaults in the upf object.
(package private)  void process_entries(BayesNet bn, IFProbabilityFunction upf, ProbabilityVariable[] variables, double[] values, double[][] extreme_points, int jump)
          Insert entries specified in the upf object.
(package private)  double[][] process_extreme_tables(IFProbabilityFunction upf, double[] values)
          Fill the values with the contents of the tables * in the upf object.
 
Methods inherited from class pt.tumba.ngram.bayes.ConvertInterchangeFormat
copy_table_to_values, create_variables, finish_values, get_name, get_probability_functions, get_probability_variables, get_properties, process_defaults, process_entries, process_tables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuasiBayesConvertInterchangeFormat

public QuasiBayesConvertInterchangeFormat(InterchangeFormat inter_format)
Method Detail

get_probability_function

protected ProbabilityFunction get_probability_function(BayesNet bn,
                                                       IFProbabilityFunction upf)
Method that does all the work involved in creating a * ProbabilityFunction object out of the definition * found by the parser and the information contained in * the BayesNet object; the ProbabilityFunction object may * in fact be a Quasi-Bayesian model. *

Overrides:
get_probability_function in class ConvertInterchangeFormat

process_extreme_tables

double[][] process_extreme_tables(IFProbabilityFunction upf,
                                  double[] values)
Fill the values with the contents of the tables * in the upf object. *


process_defaults

void process_defaults(IFProbabilityFunction upf,
                      double[] values,
                      double[][] extreme_points,
                      int jump)
Insert default values from the contents of the first * specification of defaults in the upf object. *


process_entries

void process_entries(BayesNet bn,
                     IFProbabilityFunction upf,
                     ProbabilityVariable[] variables,
                     double[] values,
                     double[][] extreme_points,
                     int jump)
Insert entries specified in the upf object. *


finish_values

void finish_values(double[] values,
                   double[][] extreme_points)
Perform final calculations in the values *