public class CastBoolVertex extends NonProbabilisticBool
ID_GENERATOR
Constructor and Description |
---|
CastBoolVertex(Vertex<? extends BooleanTensor> inputVertex) |
Modifier and Type | Method and Description |
---|---|
BooleanTensor |
getDerivedValue() |
BooleanTensor |
sample(KeanuRandom random) |
dLogPmf, isProbabilistic, logPmf, updateValue
and, dLogPmf, dLogPmf, getValue, logPmf, logPmf, not, observe, observe, or, setAndCascade, setAndCascade, setValue, setValue
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observe, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
public CastBoolVertex(Vertex<? extends BooleanTensor> inputVertex)
public BooleanTensor getDerivedValue()
getDerivedValue
in class NonProbabilisticBool
public BooleanTensor sample(KeanuRandom random)
sample
in class Vertex<BooleanTensor>
random
- source of randomness