|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractInferenceEngine
RandomInferenceEngine
public class RandomInferenceEngine
An inference engine that does no computation, instead returns random answers, for the purpose of testing.
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 | |
---|---|
RandomInferenceEngine(BeliefNetwork bn,
Dynamator dyn)
|
Method Summary | |
---|---|
Table |
conditional(FiniteVariable var)
Returns P(var | observations). |
void |
die()
|
void |
evidenceChanged(EvidenceChangeEvent ece)
Invoked when there is an evidence change. |
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. |
Table |
familyPartial(FiniteVariable var)
Returns the partial derivatives of the probability function with respect to the family table of var. |
InferenceEngine |
handledClone(QuantitativeDependencyHandler handler)
|
boolean |
isExhaustive()
|
Table |
joint(FiniteVariable var)
Returns P(var,observations). |
Table |
partial(FiniteVariable var)
Returns the partial derivatives of the probability function with respect to the variable var. |
void |
printInfoCompilation(PrintWriter stream)
|
void |
printInfoPropagation(PrintWriter stream)
|
void |
printTables(PrintWriter out)
|
double |
probability()
|
void |
setCPT(FiniteVariable var)
Sets the CPT associated with var to the values in vals. |
Set |
variables()
Returns the set of all of the variables. |
void |
warning(EvidenceChangeEvent ece)
warning() means: a real evidence change is about to happen - get ready! |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomInferenceEngine(BeliefNetwork bn, Dynamator dyn)
Method Detail |
---|
public void die()
die
in interface InferenceEngine
die
in class AbstractInferenceEngine
public void printInfoCompilation(PrintWriter stream)
printInfoCompilation
in interface InferenceEngine
printInfoCompilation
in class AbstractInferenceEngine
public void printInfoPropagation(PrintWriter stream)
printInfoPropagation
in interface InferenceEngine
printInfoPropagation
in class AbstractInferenceEngine
public void printTables(PrintWriter out)
printTables
in interface InferenceEngine
public InferenceEngine handledClone(QuantitativeDependencyHandler handler)
handledClone
in interface InferenceEngine
public void warning(EvidenceChangeEvent ece)
EvidenceChangeListener
warning
in interface EvidenceChangeListener
public void evidenceChanged(EvidenceChangeEvent ece)
EvidenceChangeListener
evidenceChanged
in interface EvidenceChangeListener
public void setCPT(FiniteVariable var)
InferenceEngine
setCPT
in interface InferenceEngine
var
- The variable whose CPT we want to set.public double probability()
probability
in interface InferenceEngine
public Table joint(FiniteVariable var)
InferenceEngine
joint
in interface InferenceEngine
public Table conditional(FiniteVariable var)
InferenceEngine
conditional
in interface InferenceEngine
public Table familyJoint(FiniteVariable var)
InferenceEngine
familyJoint
in interface InferenceEngine
public Table familyConditional(FiniteVariable var)
InferenceEngine
familyConditional
in interface InferenceEngine
public Table partial(FiniteVariable var)
PartialDerivativeEngine
partial
in interface PartialDerivativeEngine
public Table familyPartial(FiniteVariable var)
PartialDerivativeEngine
familyPartial
in interface PartialDerivativeEngine
public Set variables()
InferenceEngine
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 |