|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ve.FactorStore
a place to store factors during computation. This is a naive implementation. A better implementation would do better indexing.
Constructor Summary | |
FactorStore()
generate an empty store. |
|
FactorStore(Factor[] initialFactors,
int numFactors,
Variable[] initialVariables,
int numVars)
generate a containing the given initial factors and initial variables. |
Method Summary | |
void |
add(Factor newFactor)
add a new element to the store. |
FactorIterator |
emunFactors()
Returns an iterator over the the remaining factors. |
FactorIterator |
emunFactorsContaining(Variable var)
Returns an iterator over the factors that contain the variable var. |
void |
observe(Variable[] observedVars,
int[] observedVals)
update the factors to make the appropriate observations. |
void |
removeIrrelevantVariables()
removes the irrelevant variables (and their associated factors) from the store. |
void |
setQuery(Variable[] queried)
sets some variables as the query variable. |
VariableIterator |
variableSelector(java.lang.String how)
returns an iterator over the variables that need to be eliminated. |
VariableIterator |
variableSelector(Variable[] eo)
returns an iterator over the variables that need to be eliminated for the given elimination ordering. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FactorStore()
public FactorStore(Factor[] initialFactors, int numFactors, Variable[] initialVariables, int numVars)
Method Detail |
public void observe(Variable[] observedVars, int[] observedVals)
public void setQuery(Variable[] queried)
public void removeIrrelevantVariables()
public void add(Factor newFactor)
public VariableIterator variableSelector(java.lang.String how)
how
- one of "sequential" or "random"public VariableIterator variableSelector(Variable[] eo)
eo
- an elimination orderingpublic FactorIterator emunFactorsContaining(Variable var)
public FactorIterator emunFactors()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |