|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractInferenceEngine
PropagationInferenceEngineImpl
public class PropagationInferenceEngineImpl
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 | |
---|---|
PropagationInferenceEngineImpl(BeliefNetwork bn,
BeliefPropagationSettings settings,
Dynamator dyn)
|
Method Summary | |
---|---|
double |
betheFreeEnergy()
This method computes the Bethe free energy approximation to the probability of evidence. |
String |
compilationStatus(PropertySuperintendent bn)
|
Table |
conditional(FiniteVariable var)
Returns P(var | observations). |
boolean |
converged()
|
String |
convergenceSummary(boolean identify)
Returns summary of convergence and statistics. |
void |
die()
|
void |
evidenceChanged(EvidenceChangeEvent ece)
interface EvidenceChangeListener |
Table |
familyConditional(FiniteVariable var)
This computes an approximation to familyConditional. |
Table |
familyJoint(FiniteVariable var)
Returns P(Family(var),evidence) where Family(var) is the set containing var and its parents. |
Table |
familyPartial(FiniteVariable var)
interface PartialDerivativeEngine |
int |
getCacheHits()
|
InferenceEngine |
handledClone(QuantitativeDependencyHandler handler)
|
boolean |
isExhaustive()
|
int |
iterations()
|
Table |
joint(FiniteVariable var)
Returns P(var,observations). |
Table |
partial(FiniteVariable var)
interface PartialDerivativeEngine |
void |
printTables(PrintWriter out)
|
double |
probability()
|
char |
probabilityDisplayOperatorUnicode()
|
boolean |
probabilitySupported()
|
void |
setConvergenceThreshold(double thresh)
|
void |
setCPT(FiniteVariable var)
Sets the CPT associated with var to the values in vals. |
void |
setMaxIterations(int max)
|
void |
setTimeoutMillis(long millis)
|
long |
timeMillis()
|
Set |
variables()
Returns the set of all of the variables. |
void |
warning(EvidenceChangeEvent ece)
interface EvidenceChangeListener |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ChangeListener |
---|
settingChanged |
Constructor Detail |
---|
public PropagationInferenceEngineImpl(BeliefNetwork bn, BeliefPropagationSettings settings, Dynamator dyn)
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 void setTimeoutMillis(long millis)
public void setMaxIterations(int max)
public void setConvergenceThreshold(double thresh)
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 char probabilityDisplayOperatorUnicode()
probabilityDisplayOperatorUnicode
in interface InferenceEngine
probabilityDisplayOperatorUnicode
in class AbstractInferenceEngine
public double betheFreeEnergy()
public boolean probabilitySupported()
probabilitySupported
in interface InferenceEngine
probabilitySupported
in class AbstractInferenceEngine
Dynamator.probabilitySupported()
,
PropagationEngineGenerator.probabilitySupported()
,
If you change the return value, you must consider
changing the return value of PropagationEngineGenerator.probabilitySupported()
public Table joint(FiniteVariable var)
InferenceEngine
joint
in interface InferenceEngine
public Table conditional(FiniteVariable var)
InferenceEngine
conditional
in interface InferenceEngine
public int getCacheHits()
public Table familyJoint(FiniteVariable var)
InferenceEngine
familyJoint
in interface InferenceEngine
public Table familyConditional(FiniteVariable var)
familyConditional
in interface InferenceEngine
public Table partial(FiniteVariable var)
public Table familyPartial(FiniteVariable var)
public void warning(EvidenceChangeEvent ece)
warning
in interface EvidenceChangeListener
public void evidenceChanged(EvidenceChangeEvent ece)
evidenceChanged
in interface EvidenceChangeListener
public Set variables()
InferenceEngine
variables
in interface InferenceEngine
public InferenceEngine handledClone(QuantitativeDependencyHandler handler)
handledClone
in interface InferenceEngine
public void printTables(PrintWriter out)
printTables
in interface InferenceEngine
public boolean isExhaustive()
isExhaustive
in interface InferenceEngine
public String convergenceSummary(boolean identify)
convergenceSummary
in interface PropagationInferenceEngine
public boolean converged()
public int iterations()
public long timeMillis()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |