public class CastBoolVertex extends BoolVertex implements NonProbabilistic<BooleanTensor>
Constructor and Description |
---|
CastBoolVertex(Vertex<? extends BooleanTensor> inputVertex) |
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, setLabel, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, unobserve
public CastBoolVertex(Vertex<? extends BooleanTensor> inputVertex)
public BooleanTensor sample(KeanuRandom random)
sample
in class Vertex<BooleanTensor>
random
- source of randomnesspublic BooleanTensor calculate()
calculate
in interface NonProbabilistic<BooleanTensor>