edu.ucla.belief.approx
Class EdgeDeletionInferenceEngine

Object
  extended by AbstractInferenceEngine
      extended by EdgeDeletionInferenceEngine
All Implemented Interfaces:
EvidenceChangeListener, InferenceEngine, ChangeListener

public class EdgeDeletionInferenceEngine
extends AbstractInferenceEngine
implements InferenceEngine

Since:
20080225
Author:
keith cascio

Nested Class Summary
static class EdgeDeletionInferenceEngine.Attribute
           
static class EdgeDeletionInferenceEngine.Command
           
static class EdgeDeletionInferenceEngine.CPTPolicy
           
static class EdgeDeletionInferenceEngine.DateFormatFilename
           
 
Field Summary
static String[] DESCRIBE_CONDITIONALS
           
 
Fields inherited from class AbstractInferenceEngine
DESCRIBE_CONDITIONAL, STR_CONSOLE_MESSAGE_COMP_MEM, STR_CONSOLE_MESSAGE_COMP_TIME, STR_CONSOLE_MESSAGE_PROP_TIME
 
Constructor Summary
EdgeDeletionInferenceEngine(BeliefNetwork bn, Macros.Bridge brudge, Setting.Settings<EdgeDeletionBeliefPropagationSetting> settings, Dynamator dyn)
           
 
Method Summary
 EdgeDeletionInferenceEngine addIterationListener(EvidenceChangeListener ecl)
           
 Appendable appendLog(Appendable app, char delimiter)
           
 Macros.Bridge bridge()
           
 Thread command(EdgeDeletionInferenceEngine.Command command)
           
 Thread command(EdgeDeletionInferenceEngine.Command command, boolean synchronous)
           
 Table conditional(FiniteVariable var)
          Returns P(var | observations).
 Table[] conditionals(FiniteVariable var, Table[] buckets)
          In case this InferenceEngine wants to report two sets of answers, for example, approximate and exact.
 String[] describeConditionals()
          In case this InferenceEngine wants to report two sets of answers, for example, approximate and exact.
 void die()
           
 EdgeDeletionInferenceEngine dirty()
           
 void evidenceChanged(EvidenceChangeEvent ece)
          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.
 BeliefNetwork getBeliefNetwork()
           
 boolean getFlagControl()
           
 InferenceEngine handledClone(QuantitativeDependencyHandler handler)
           
 boolean isExhaustive()
           
 Table joint(FiniteVariable var)
          Returns P(var,observations).
 boolean logging()
           
 double maxError()
           
 void printTables(PrintWriter out)
           
 double probability()
           
 char probabilityDisplayOperatorUnicode()
           
 boolean removeIterationListener(EvidenceChangeListener ecl)
           
 void setCPT(FiniteVariable var)
          Sets the CPT associated with var to the values in vals.
 EdgeDeletionInferenceEngine.CPTPolicy.Listener setListener(EdgeDeletionInferenceEngine.CPTPolicy.Listener listener)
           
 EdgeDeletionInferenceEngine setThreadGroup(ThreadGroup threadgroup)
           
 Setting.Settings<EdgeDeletionBeliefPropagationSetting> settings()
           
 Set<FiniteVariable> variables()
          Returns the set of all of the variables.
 void warning(EvidenceChangeEvent ece)
          interface EvidenceChangeListener
 
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 class Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface InferenceEngine
canonical, compilationStatus, getControlPanel, getDynamator, getQuantitativeDependencyHandler, getValid, isQuantitativeDependencyHandled, max, notoriousEdges, printInfoCompilation, printInfoPropagation, probabilitySupported, random, setControlPanel, setDynamator, setQuantitativeDependencyHandler, setValid
 

Field Detail

DESCRIBE_CONDITIONALS

public static final String[] DESCRIBE_CONDITIONALS
Since:
20080226
Constructor Detail

EdgeDeletionInferenceEngine

public EdgeDeletionInferenceEngine(BeliefNetwork bn,
                                   Macros.Bridge brudge,
                                   Setting.Settings<EdgeDeletionBeliefPropagationSetting> settings,
                                   Dynamator dyn)
Method Detail

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