public abstract class BoolUnaryOpVertex<A extends Tensor> extends NonProbabilisticBool
Modifier and Type | Field and Description |
---|---|
protected Vertex<A> |
a |
ID_GENERATOR
Constructor and Description |
---|
BoolUnaryOpVertex(int[] shape,
Vertex<A> a) |
Modifier and Type | Method and Description |
---|---|
BooleanTensor |
getDerivedValue() |
protected abstract BooleanTensor |
op(A a) |
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 BooleanTensor sample(KeanuRandom random)
sample
in class Vertex<BooleanTensor>
random
- source of randomnesspublic BooleanTensor getDerivedValue()
getDerivedValue
in class NonProbabilisticBool
protected abstract BooleanTensor op(A a)