|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractInferenceEngine
RCInferenceEngine
public class RCInferenceEngine
Field Summary |
---|
Fields inherited from class AbstractInferenceEngine |
---|
DESCRIBE_CONDITIONAL, STR_CONSOLE_MESSAGE_COMP_MEM, STR_CONSOLE_MESSAGE_COMP_TIME, STR_CONSOLE_MESSAGE_PROP_TIME |
Constructor Summary | |
---|---|
RCInferenceEngine(RCDgraph rcdgraph,
Dynamator dyn,
BeliefNetwork beliefNetwork)
Constructs a new RCInferenceEngine that wraps a RCDgraph. |
Method Summary | |
---|---|
String |
compilationStatus(PropertySuperintendent bn)
|
Table |
conditional(FiniteVariable var)
Returns P(var | observations). |
void |
die()
|
void |
evidenceChanged(EvidenceChangeEvent ECE)
For interface EvidenceChangeListener. |
Table |
familyConditional(FiniteVariable var)
Returns P(Family(var) | evidence) where Family(var) is the set containing var and its parents. |
Table |
familyJoint(FiniteVariable var)
Returns P(Family(var),evidence) where Family(var) is the set containing var and its parents. |
double |
getValue()
|
InferenceEngine |
handledClone(QuantitativeDependencyHandler handler)
|
boolean |
isExhaustive()
|
Table |
joint(FiniteVariable var)
Returns P(var,observations). |
void |
printTables(PrintWriter out)
|
double |
probability()
Returns P(e). |
void |
setCPT(FiniteVariable var)
This function tells the dgraph to clear all caches above where var's leaf node is. |
RCDgraph |
underlyingCompilation()
|
Set |
variables()
Returns the set of all of the variables. |
void |
warning(EvidenceChangeEvent ece)
For interface EvidenceChangeListener |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RCInferenceEngine(RCDgraph rcdgraph, Dynamator dyn, BeliefNetwork beliefNetwork)
Method Detail |
---|
public String compilationStatus(PropertySuperintendent bn)
compilationStatus
in interface InferenceEngine
compilationStatus
in class AbstractInferenceEngine
public void die()
die
in interface InferenceEngine
die
in class AbstractInferenceEngine
public InferenceEngine handledClone(QuantitativeDependencyHandler handler)
handledClone
in interface InferenceEngine
public void printTables(PrintWriter out)
printTables
in interface InferenceEngine
public RCDgraph underlyingCompilation()
public void warning(EvidenceChangeEvent ece)
warning
in interface EvidenceChangeListener
public void evidenceChanged(EvidenceChangeEvent ECE)
evidenceChanged
in interface EvidenceChangeListener
public void setCPT(FiniteVariable var)
setCPT
in interface InferenceEngine
var
- The variable whose CPT we want to set.vals
- The values of the entries in the cpt.public double probability()
probability
in interface InferenceEngine
public Table joint(FiniteVariable var)
joint
in interface InferenceEngine
public Table conditional(FiniteVariable var)
conditional
in interface InferenceEngine
public Table familyJoint(FiniteVariable var)
familyJoint
in interface InferenceEngine
public Table familyConditional(FiniteVariable var)
familyConditional
in interface InferenceEngine
public double getValue()
public Set variables()
variables
in interface InferenceEngine
public boolean isExhaustive()
isExhaustive
in interface InferenceEngine
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |