public class IntegerIfVertex extends IntegerVertex implements NonProbabilistic<IntegerTensor>
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ELSE_NAME |
protected static java.lang.String |
PREDICATE_NAME |
protected static java.lang.String |
THEN_NAME |
Constructor and Description |
---|
IntegerIfVertex(BooleanVertex predicate,
IntegerVertex thn,
IntegerVertex els) |
Modifier and Type | Method and Description |
---|---|
IntegerTensor |
calculate() |
IntegerVertex |
getEls() |
BooleanVertex |
getPredicate() |
IntegerVertex |
getThn() |
abs, concat, div, div, divideBy, divideBy, divideBy, equalTo, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, loadValue, max, min, minus, minus, minus, multiply, multiply, multiply, notEqualTo, observe, observe, plus, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, saveValue, setAndCascade, setAndCascade, setValue, setValue, slice, sum, take, times, times, toDouble, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, print, print, removeLabel, save, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observe, unobserve
protected static final java.lang.String PREDICATE_NAME
protected static final java.lang.String THEN_NAME
protected static final java.lang.String ELSE_NAME
public IntegerIfVertex(BooleanVertex predicate, IntegerVertex thn, IntegerVertex els)
public BooleanVertex getPredicate()
public IntegerVertex getThn()
public IntegerVertex getEls()
public IntegerTensor calculate()
calculate
in interface NonProbabilistic<IntegerTensor>