public class CPTVertex<T> extends NonProbabilistic<T>
Modifier and Type | Class and Description |
---|---|
static class |
CPTVertex.Condition |
idGenerator
Constructor and Description |
---|
CPTVertex(java.util.List<Vertex<java.lang.Boolean>> inputs,
java.util.Map<CPTVertex.Condition,Vertex<T>> conditions,
Vertex<T> defaultResult) |
Modifier and Type | Method and Description |
---|---|
T |
getDerivedValue() |
T |
lazyEval()
This causes a backwards propagating calculation of the vertex value.
|
T |
sample() |
dDensityAtValue, density, isProbabilistic, updateValue
addChild, addParent, addParents, densityAtValue, dlnDensityAtValue, equals, getChildren, getConnectedGraph, getId, getParents, getValue, hashCode, isObserved, logDensity, logDensityAtValue, observe, observeOwnValue, setAndCascade, setParents, setParents, setValue, unobserve, updateChildren
public T sample()
public T lazyEval()
Vertex
public T getDerivedValue()
getDerivedValue
in class NonProbabilistic<T>