|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--BayesianNetworks.BayesNet
Field Summary | |
static int |
INVALID_INDEX
|
protected java.lang.String |
name
|
protected DiscreteFunction[] |
probabilities
|
protected DiscreteFunction |
utility
|
protected DiscreteVariable[] |
variables
|
Constructor Summary | |
BayesNet()
Default constructor for a BayesNet. |
Method Summary | |
void |
add(DiscreteFunction[] pfs)
Add an array of DiscreteFunction objects to the BayesNet. |
void |
add(DiscreteVariable[] pvs)
Add an array of DiscreteVariable objects to the BayesNet. |
java.lang.String[][] |
get_all_evidence()
Get all the evidence contained in the network variables. |
DiscreteFunction |
get_function(DiscreteVariable p_v)
Find the DiscreteFunction that corresponds to a given DiscreteVariable. |
java.lang.String |
get_name()
Get the name of the network. |
DiscreteFunction[] |
get_probabilities()
Get the probability functions. |
DiscreteFunction |
get_probability_function(int index)
Get the probabilities function at a given index. |
DiscreteVariable |
get_probability_variable(int index)
Get the probability variable at a given index. |
DiscreteVariable |
get_probability_variable(java.lang.String n_v)
Get the probability variable given the name of the variable. |
DiscreteFunction |
get_utility()
Get the utility function. |
DiscreteVariable[] |
get_variables()
Get the probability variables. |
int |
index_of_variable(java.lang.String n_vb)
Determine the position of a variable given its name. |
int |
number_probabilities()
Get the number of distributions in the network. |
int |
number_variables()
Get the number of variables in the network. |
void |
set_name(java.lang.String n)
Set the name of the network. |
void |
set_probability_function(int index,
DiscreteFunction p_f)
Set a probability variable given its index. |
void |
set_probability_variable(int index,
DiscreteVariable p_v)
Set a probability variable given its index. |
void |
set_probability(DiscreteFunction[] pfs)
Set the vector of probability functions. |
void |
set_variables(DiscreteVariable[] pvs)
Set the vector of probability variables. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String name
protected DiscreteVariable[] variables
protected DiscreteFunction[] probabilities
protected DiscreteFunction utility
public static final int INVALID_INDEX
Constructor Detail |
public BayesNet()
Method Detail |
public void add(DiscreteVariable[] pvs)
public void add(DiscreteFunction[] pfs)
public DiscreteFunction get_function(DiscreteVariable p_v)
public java.lang.String[][] get_all_evidence()
public int index_of_variable(java.lang.String n_vb)
public java.lang.String get_name()
public void set_name(java.lang.String n)
public int number_variables()
public int number_probabilities()
public DiscreteVariable get_probability_variable(int index)
public DiscreteVariable get_probability_variable(java.lang.String n_v)
public DiscreteFunction get_probability_function(int index)
public DiscreteVariable[] get_variables()
public DiscreteFunction[] get_probabilities()
public DiscreteFunction get_utility()
public void set_probability_variable(int index, DiscreteVariable p_v)
public void set_probability_function(int index, DiscreteFunction p_f)
public void set_variables(DiscreteVariable[] pvs)
public void set_probability(DiscreteFunction[] pfs)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |