public class IfVertex<T> extends GenericTensorVertex<T> implements NonProbabilistic<GenericTensor<T>>
| Constructor and Description |
|---|
IfVertex(BooleanVertex predicate,
Vertex<GenericTensor<T>> thn,
Vertex<GenericTensor<T>> els) |
| Modifier and Type | Method and Description |
|---|---|
GenericTensor<T> |
calculate() |
Vertex<GenericTensor<T>> |
getEls() |
BooleanVertex |
getPredicate() |
Vertex<GenericTensor<T>> |
getThn() |
slice, takeaddChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, loadValue, observe, observeOwnValue, print, print, removeLabel, save, saveValue, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontradictsObservationgetObservedValue, isObserved, observe, unobservepublic IfVertex(BooleanVertex predicate, Vertex<GenericTensor<T>> thn, Vertex<GenericTensor<T>> els)
public GenericTensor<T> calculate()
calculate in interface NonProbabilistic<GenericTensor<T>>public BooleanVertex getPredicate()
public Vertex<GenericTensor<T>> getThn()
public Vertex<GenericTensor<T>> getEls()