public class IfVertex<T> extends Vertex<Tensor<T>> implements NonProbabilistic<Tensor<T>>
Constructor and Description |
---|
IfVertex(long[] shape,
Vertex<? extends BooleanTensor> predicate,
Vertex<? extends Tensor<T>> thn,
Vertex<? extends Tensor<T>> els) |
Modifier and Type | Method and Description |
---|---|
Tensor<T> |
calculate() |
Tensor<T> |
sample(KeanuRandom random) |
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getId, getIndentation, getLabel, getObservedValue, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, removeLabel, sample, setAndCascade, setLabel, setLabel, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, unobserve
public Tensor<T> sample(KeanuRandom random)