pt.tumba.ngram.bayes
Class IFProbabilityFunction

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

public class IFProbabilityFunction
extends java.lang.Object

Auxiliar class that stores the temporary information * about a ProbabilityFunction, before it is possible to * actually create a ProbabilityFunction object (because * not all variables may be read at this point). The object * stores the variable names in the function, the vector * of properties, and information that will be used to * create the conditional distribution tables (the default * entry, the vector of entries, the table of values; not * all of them may be filled for a particular probability) *


Field Summary
(package private)  int conditional_index
           
(package private)  java.util.Vector defaults
           
(package private)  java.util.Vector entries
           
(package private)  java.util.Vector properties
           
(package private)  java.lang.String[] s_variables
           
(package private)  java.util.Vector tables
           
 
Constructor Summary
IFProbabilityFunction()
           
 
Method Summary
 int get_conditional_index()
           
 java.util.Vector get_defaults()
           
 java.util.Vector get_entries()
           
 java.util.Vector get_properties()
           
 java.util.Vector get_tables()
           
 java.lang.String[] get_variables()
           
 void invert_tables(IFBayesNet ifbn)
          Method that inverts the tables in the ProbabilityFunction * object; necessary for formats that put the GIVEN * variables as the lowest running indexes in the tables.
 void set_conditional_index(int c)
           
 void set_defaults(java.util.Vector d)
           
 void set_entries(java.util.Vector e)
           
 void set_properties(java.util.Vector p)
           
 void set_tables(java.util.Vector t)
           
 void set_variables(java.lang.String[] vs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_variables

java.lang.String[] s_variables

conditional_index

int conditional_index

properties

java.util.Vector properties

defaults

java.util.Vector defaults

tables

java.util.Vector tables

entries

java.util.Vector entries
Constructor Detail

IFProbabilityFunction

public IFProbabilityFunction()
Method Detail

set_variables

public void set_variables(java.lang.String[] vs)

set_properties

public void set_properties(java.util.Vector p)

set_defaults

public void set_defaults(java.util.Vector d)

set_tables

public void set_tables(java.util.Vector t)

set_entries

public void set_entries(java.util.Vector e)

set_conditional_index

public void set_conditional_index(int c)

get_variables

public java.lang.String[] get_variables()

get_properties

public java.util.Vector get_properties()

get_defaults

public java.util.Vector get_defaults()

get_tables

public java.util.Vector get_tables()

get_entries

public java.util.Vector get_entries()

get_conditional_index

public int get_conditional_index()

invert_tables

public void invert_tables(IFBayesNet ifbn)
Method that inverts the tables in the ProbabilityFunction * object; necessary for formats that put the GIVEN * variables as the lowest running indexes in the tables. * At this point it assumes that there is only one FOR * variable in the ProbabilityFunction object. *