|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blog.BasicVar blog.VarWithDistrib
public abstract class VarWithDistrib
Abstract class for variables that have a distribution specified by the BLOG model. This includes number variables and random function application variables.
Field Summary |
---|
Fields inherited from class blog.BasicVar |
---|
args |
Constructor Summary | |
---|---|
protected |
VarWithDistrib(java.util.List argList)
Creates a new VarWithDistrib with the given tuple of arguments or generating objects. |
protected |
VarWithDistrib(java.lang.Object[] args)
Creates a new VarWithDistrib with the given tuple of arguments or generating objects. |
protected |
VarWithDistrib(java.lang.Object[] args,
boolean stable)
Creates a new VarWithDistrib with the given tuple of arguments or generating objects. |
Method Summary | |
---|---|
void |
ensureDetAndSupported(InstantiatingEvalContext instantiator)
Ensures that the partial world underlying the given InstantiatingEvalContext is complete enough to determine the value of this variable and to determine its probability distribution conditional on its parents. |
abstract DependencyModel |
getDepModel()
Returns the dependency model for this variable. |
abstract DependencyModel.Distrib |
getDistrib(EvalContext context)
Returns the CPD and argument values in the first satisfied clause of this variable's dependency statement in the given context. |
BasicVar |
getFirstUninstParent(PartialWorld w)
Returns the first parent of this variable that is uninstantiated in the given partial world. |
java.util.Set |
getParents(PartialWorld w)
Returns the set of parents of this variable in the given partial world. |
Methods inherited from class blog.BasicVar |
---|
args, clone, compareTo, ensureStable, getCanonicalTerm, getCanonicalTerm, getOrderingIndex, getType, getValue, isDetermined, timestep |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected VarWithDistrib(java.lang.Object[] args)
protected VarWithDistrib(java.lang.Object[] args, boolean stable)
stable
is true, then the
caller guarantees that the given args
array will not
be modified externally.
protected VarWithDistrib(java.util.List argList)
Method Detail |
---|
public abstract DependencyModel getDepModel()
public abstract DependencyModel.Distrib getDistrib(EvalContext context)
public java.util.Set getParents(PartialWorld w)
public BasicVar getFirstUninstParent(PartialWorld w)
BayesNetVar
public void ensureDetAndSupported(InstantiatingEvalContext instantiator)
BayesNetVar
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |