public class NumericalEqualsVertex extends BoolVertex implements NonProbabilistic<BooleanTensor>
Modifier and Type | Field and Description |
---|---|
protected Vertex<? extends NumberTensor> |
a |
protected Vertex<? extends NumberTensor> |
b |
Constructor and Description |
---|
NumericalEqualsVertex(Vertex<? extends NumberTensor> a,
Vertex<? extends NumberTensor> b,
Vertex<? extends NumberTensor> epsilon) |
Modifier and Type | Method and Description |
---|---|
BooleanTensor |
calculate() |
BooleanTensor |
sample(KeanuRandom random) |
and, and, and, concat, equalTo, getValue, not, not, notEqualTo, observe, observe, or, or, or, reshape, setAndCascade, setAndCascade, setValue, setValue, slice, take
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, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, unobserve
protected Vertex<? extends NumberTensor> a
protected Vertex<? extends NumberTensor> b
public NumericalEqualsVertex(Vertex<? extends NumberTensor> a, Vertex<? extends NumberTensor> b, Vertex<? extends NumberTensor> epsilon)
public BooleanTensor sample(KeanuRandom random)
sample
in class Vertex<BooleanTensor>
random
- source of randomnesspublic BooleanTensor calculate()
calculate
in interface NonProbabilistic<BooleanTensor>