public abstract class BinaryOpVertex<A,B,C> extends Vertex<C> implements NonProbabilistic<C>
Modifier and Type | Field and Description |
---|---|
protected Vertex<A> |
a |
protected Vertex<B> |
b |
Constructor and Description |
---|
BinaryOpVertex(Vertex<A> a,
Vertex<B> b) |
Modifier and Type | Method and Description |
---|---|
C |
calculate() |
protected abstract C |
op(A a,
B b) |
C |
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 C sample(KeanuRandom random)
public C calculate()
calculate
in interface NonProbabilistic<C>