pt.tumba.ngram.bayes
Class IFProbabilityFunction
java.lang.Object
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) *
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
IFProbabilityFunction
public IFProbabilityFunction()
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. *