public class IfVertex<T> extends Vertex<Tensor<T>> implements NonProbabilistic<Tensor<T>>
Constructor and Description |
---|
IfVertex(Vertex<? extends BooleanTensor> predicate,
Vertex<? extends Tensor<T>> thn,
Vertex<? extends Tensor<T>> els) |
Modifier and Type | Method and Description |
---|---|
Tensor<T> |
calculate() |
Vertex<? extends Tensor<T>> |
getEls() |
Vertex<? extends BooleanTensor> |
getPredicate() |
Vertex<? extends Tensor<T>> |
getThn() |
Tensor<T> |
sample(KeanuRandom random) |
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getReference, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, lazyEval, loadValue, observe, observeOwnValue, removeLabel, save, saveValue, 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)
public Tensor<T> calculate()
calculate
in interface NonProbabilistic<Tensor<T>>
public Vertex<? extends BooleanTensor> getPredicate()