edu.ucla.belief.approx
Class EdgeDeletionInferenceEngine
Object
AbstractInferenceEngine
EdgeDeletionInferenceEngine
- All Implemented Interfaces:
- EvidenceChangeListener, InferenceEngine, ChangeListener
public class EdgeDeletionInferenceEngine
- extends AbstractInferenceEngine
- implements InferenceEngine
- Since:
- 20080225
- Author:
- keith cascio
Methods inherited from class AbstractInferenceEngine |
canonical, compilationStatus, equals, getControlPanel, getDynamator, getEffectiveCPTData, getQuantitativeDependencyHandler, getValid, hashCode, isQuantitativeDependencyHandled, max, notoriousEdges, printInfoCompilation, printInfoPropagation, printTables, probabilitySupported, random, setControlPanel, setDynamator, setQuantitativeDependencyHandler, settingChanged, setValid, test |
Methods inherited from interface InferenceEngine |
canonical, compilationStatus, getControlPanel, getDynamator, getQuantitativeDependencyHandler, getValid, isQuantitativeDependencyHandled, max, notoriousEdges, printInfoCompilation, printInfoPropagation, probabilitySupported, random, setControlPanel, setDynamator, setQuantitativeDependencyHandler, setValid |
DESCRIBE_CONDITIONALS
public static final String[] DESCRIBE_CONDITIONALS
- Since:
- 20080226
EdgeDeletionInferenceEngine
public EdgeDeletionInferenceEngine(BeliefNetwork bn,
Macros.Bridge brudge,
Setting.Settings<EdgeDeletionBeliefPropagationSetting> settings,
Dynamator dyn)
appendLog
public Appendable appendLog(Appendable app,
char delimiter)
throws IOException
- Throws:
IOException
- Since:
- 20080228
maxError
public double maxError()
- Since:
- 20080228
setThreadGroup
public EdgeDeletionInferenceEngine setThreadGroup(ThreadGroup threadgroup)
- Since:
- 20080227
command
public Thread command(EdgeDeletionInferenceEngine.Command command)
- Since:
- 20080227
command
public Thread command(EdgeDeletionInferenceEngine.Command command,
boolean synchronous)
- Since:
- 20080227
conditionals
public Table[] conditionals(FiniteVariable var,
Table[] buckets)
- In case this InferenceEngine wants to report two sets of answers,
for example, approximate and exact.
- Specified by:
conditionals
in interface InferenceEngine
- Overrides:
conditionals
in class AbstractInferenceEngine
- Since:
- 20080226
describeConditionals
public String[] describeConditionals()
- In case this InferenceEngine wants to report two sets of answers,
for example, approximate and exact.
- Specified by:
describeConditionals
in interface InferenceEngine
- Overrides:
describeConditionals
in class AbstractInferenceEngine
- Since:
- 20080226
addIterationListener
public EdgeDeletionInferenceEngine addIterationListener(EvidenceChangeListener ecl)
- Since:
- 20080227
removeIterationListener
public boolean removeIterationListener(EvidenceChangeListener ecl)
- Since:
- 20080309
evidenceChanged
public void evidenceChanged(EvidenceChangeEvent ece)
- interface EvidenceChangeListener
- Specified by:
evidenceChanged
in interface EvidenceChangeListener
warning
public void warning(EvidenceChangeEvent ece)
- interface EvidenceChangeListener
- Specified by:
warning
in interface EvidenceChangeListener
conditional
public Table conditional(FiniteVariable var)
- Description copied from interface:
InferenceEngine
- Returns P(var | observations).
- Specified by:
conditional
in interface InferenceEngine
joint
public Table joint(FiniteVariable var)
- Description copied from interface:
InferenceEngine
- Returns P(var,observations).
- Specified by:
joint
in interface InferenceEngine
probability
public double probability()
- Specified by:
probability
in interface InferenceEngine
probabilityDisplayOperatorUnicode
public char probabilityDisplayOperatorUnicode()
- Specified by:
probabilityDisplayOperatorUnicode
in interface InferenceEngine
- Overrides:
probabilityDisplayOperatorUnicode
in class AbstractInferenceEngine
- Since:
- 20091116
setCPT
public void setCPT(FiniteVariable var)
- Description copied from interface:
InferenceEngine
- Sets the CPT associated with var to the values in vals.
The ordering of vars must be consistent with the ordering
returned by getCPT(var).
- Specified by:
setCPT
in interface InferenceEngine
- Parameters:
var
- The variable whose CPT we want to set.
familyJoint
public Table familyJoint(FiniteVariable var)
- Description copied from interface:
InferenceEngine
- Returns P(Family(var),evidence) where Family(var) is the set containing
var and its parents.
- Specified by:
familyJoint
in interface InferenceEngine
familyConditional
public Table familyConditional(FiniteVariable var)
- Description copied from interface:
InferenceEngine
- Returns P(Family(var) | evidence) where Family(var) is the set containing
var and its parents.
- Specified by:
familyConditional
in interface InferenceEngine
variables
public Set<FiniteVariable> variables()
- Description copied from interface:
InferenceEngine
- Returns the set of all of the variables.
- Specified by:
variables
in interface InferenceEngine
isExhaustive
public boolean isExhaustive()
- Specified by:
isExhaustive
in interface InferenceEngine
handledClone
public InferenceEngine handledClone(QuantitativeDependencyHandler handler)
- Specified by:
handledClone
in interface InferenceEngine
printTables
public void printTables(PrintWriter out)
- Specified by:
printTables
in interface InferenceEngine
getBeliefNetwork
public BeliefNetwork getBeliefNetwork()
- Since:
- 20080227
bridge
public Macros.Bridge bridge()
- Since:
- 20080228
dirty
public EdgeDeletionInferenceEngine dirty()
- Since:
- 20080228
getFlagControl
public boolean getFlagControl()
- Since:
- 20080228
settings
public Setting.Settings<EdgeDeletionBeliefPropagationSetting> settings()
- Since:
- 20080228
logging
public boolean logging()
- Since:
- 20080228
setListener
public EdgeDeletionInferenceEngine.CPTPolicy.Listener setListener(EdgeDeletionInferenceEngine.CPTPolicy.Listener listener)
- Since:
- 20080229
die
public void die()
- Specified by:
die
in interface InferenceEngine
- Overrides:
die
in class AbstractInferenceEngine
- Since:
- 20080309
Copyright 2010 UCLA Automated Reasoning Group