public abstract class IntegerUnaryOpVertex extends NonProbabilisticInteger
Modifier and Type | Field and Description |
---|---|
protected IntegerVertex |
inputVertex |
idGenerator
Constructor and Description |
---|
IntegerUnaryOpVertex(IntegerVertex inputVertex) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getDerivedValue() |
java.lang.Integer |
lazyEval()
This causes a backwards propagating calculation of the vertex value.
|
protected abstract java.lang.Integer |
op(java.lang.Integer a) |
java.lang.Integer |
sample() |
dDensityAtValue, density, isProbabilistic, observe, updateValue
abs, div, div, divideBy, divideBy, divideBy, lambda, minus, minus, minus, multiply, multiply, multiply, plus, plus, plus, times, times, unaryMinus
addChild, addParent, addParents, densityAtValue, dlnDensityAtValue, equals, getChildren, getConnectedGraph, getId, getParents, getValue, hashCode, isObserved, logDensity, logDensityAtValue, observeOwnValue, setAndCascade, setParents, setParents, setValue, unobserve, updateChildren
protected final IntegerVertex inputVertex
public IntegerUnaryOpVertex(IntegerVertex inputVertex)
public java.lang.Integer sample()
public java.lang.Integer lazyEval()
Vertex
public java.lang.Integer getDerivedValue()
getDerivedValue
in class NonProbabilisticInteger
protected abstract java.lang.Integer op(java.lang.Integer a)