pt.tumba.ngram.bayes
Class ConvertInterchangeFormat

java.lang.Object
  extended by pt.tumba.ngram.bayes.ConvertInterchangeFormat
Direct Known Subclasses:
QuasiBayesConvertInterchangeFormat

public class ConvertInterchangeFormat
extends java.lang.Object


Field Summary
(package private)  InterchangeFormat ifo
           
 
Constructor Summary
ConvertInterchangeFormat(InterchangeFormat inter_format)
          Default constructor that loads an InterchangeFormat.
 
Method Summary
protected  void copy_table_to_values(double[] table, double[] values)
           
protected  ProbabilityVariable[] create_variables(BayesNet bn, IFProbabilityFunction upf)
           
(package private)  void finish_values(double[] values)
           
 java.lang.String get_name()
          Get the name of the IFBayesNet in the InterchangeFormat.
protected  ProbabilityFunction get_probability_function(BayesNet bn, IFProbabilityFunction upf)
           
 ProbabilityFunction[] get_probability_functions(BayesNet bn)
          Generate an array of ProbabilityFunction objects from the data structures in the IFBayesNet.
 ProbabilityVariable[] get_probability_variables(BayesNet bn)
          Generate an array of ProbabilityVariable objects from the data structures in the IFBayesNet.
 java.util.Vector get_properties()
          Get the properties of the IFBayesNet in the InterchangeFormat.
(package private)  void process_defaults(IFProbabilityFunction upf, double[] values, int jump)
           
(package private)  void process_entries(BayesNet bn, IFProbabilityFunction upf, ProbabilityVariable[] variables, double[] values, int jump)
           
protected  void process_tables(IFProbabilityFunction upf, double[] values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ifo

InterchangeFormat ifo
Constructor Detail

ConvertInterchangeFormat

public ConvertInterchangeFormat(InterchangeFormat inter_format)
Default constructor that loads an InterchangeFormat.

Method Detail

get_name

public java.lang.String get_name()
Get the name of the IFBayesNet in the InterchangeFormat.


get_properties

public java.util.Vector get_properties()
Get the properties of the IFBayesNet in the InterchangeFormat.


get_probability_variables

public ProbabilityVariable[] get_probability_variables(BayesNet bn)
Generate an array of ProbabilityVariable objects from the data structures in the IFBayesNet.

Parameters:
bn - The BayesNet that will receive the ProbabilityVariable objects.

get_probability_functions

public ProbabilityFunction[] get_probability_functions(BayesNet bn)
Generate an array of ProbabilityFunction objects from the data structures in the IFBayesNet.

Parameters:
bn - The BayesNet that will receive the ProbabilityVariable objects.

get_probability_function

protected ProbabilityFunction get_probability_function(BayesNet bn,
                                                       IFProbabilityFunction upf)

create_variables

protected ProbabilityVariable[] create_variables(BayesNet bn,
                                                 IFProbabilityFunction upf)

process_tables

protected void process_tables(IFProbabilityFunction upf,
                              double[] values)

copy_table_to_values

protected void copy_table_to_values(double[] table,
                                    double[] values)

process_defaults

void process_defaults(IFProbabilityFunction upf,
                      double[] values,
                      int jump)

process_entries

void process_entries(BayesNet bn,
                     IFProbabilityFunction upf,
                     ProbabilityVariable[] variables,
                     double[] values,
                     int jump)

finish_values

void finish_values(double[] values)