|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ve.DecisionNetwork
A DecisionNetwork contains a tuple of Variables (each with a domain)
and a set of conditional probability tables, each represented as a
FactorCPT
.
Field Summary | |
protected int |
maxDomainSize
the maximum domain size in an input factor. |
protected int |
maxFactorSize
maximum number of variables in an input factor. |
protected int |
numProbFactors
|
protected int |
numVariables
|
protected Factor[] |
probFactors
factors representing conditional probability tables asssociates with the variables. |
protected java.util.Hashtable |
stringToVar
maps the string name to the variable. |
protected Variable[] |
variables
The variables of the decision network, in order. |
Constructor Summary | |
protected |
DecisionNetwork()
|
|
DecisionNetwork(Variable[] vars,
int numVars)
|
Method Summary | |
int |
getNumProbFactors()
|
int |
getNumVariables()
|
Factor[] |
getProbFactors()
return the conditional probability tables asssociated with the variables. |
int |
getSize()
returns the number of paramters in the decision network. |
java.util.Hashtable |
getStringToVar()
returns a map from the string to a variable. |
Variable[] |
getVariables()
get the variables of the decision network, in order. |
protected static void |
mysort(Variable[] vars)
|
void |
print()
Prints the belief network |
void |
printBrief()
Prints a summary of the belief network |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected Variable[] variables
protected Factor[] probFactors
protected int numVariables
protected int numProbFactors
protected final int maxDomainSize
protected final int maxFactorSize
protected java.util.Hashtable stringToVar
Constructor Detail |
protected DecisionNetwork()
public DecisionNetwork(Variable[] vars, int numVars)
Method Detail |
public Variable[] getVariables()
public Factor[] getProbFactors()
public int getNumVariables()
public int getNumProbFactors()
public java.util.Hashtable getStringToVar()
public void print()
public void printBrief()
public int getSize()
protected static void mysort(Variable[] vars)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |