public abstract class UnaryOpVertex<IN,OUT> extends Vertex<OUT> implements NonProbabilistic<OUT>
Modifier and Type | Field and Description |
---|---|
protected Vertex<IN> |
inputVertex |
Constructor and Description |
---|
UnaryOpVertex(Vertex<IN> inputVertex) |
Modifier and Type | Method and Description |
---|---|
OUT |
calculate() |
protected abstract OUT |
op(IN a) |
OUT |
sample(KeanuRandom random) |
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getId, getIndentation, getLabel, getObservedValue, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, labeledAs, lazyEval, observe, observeOwnValue, sample, setAndCascade, setLabel, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, unobserve
public OUT sample(KeanuRandom random)
public OUT calculate()
calculate
in interface NonProbabilistic<OUT>