public class BoolReduceVertex extends NonProbabilisticBool
ID_GENERATOR
Constructor and Description |
---|
BoolReduceVertex(int[] shape,
java.util.function.BiFunction<BooleanTensor,BooleanTensor,BooleanTensor> f,
Vertex<BooleanTensor>... input) |
BoolReduceVertex(int[] shape,
java.util.Collection<Vertex<BooleanTensor>> input,
java.util.function.BiFunction<BooleanTensor,BooleanTensor,BooleanTensor> reduceFunction) |
Modifier and Type | Method and Description |
---|---|
BooleanTensor |
getDerivedValue() |
BooleanTensor |
sample(KeanuRandom random) |
dLogPmf, isProbabilistic, logPmf, updateValue
and, dLogPmf, dLogPmf, logPmf, logPmf, observe, observe, or, setAndCascade, setAndCascade, setAndCascade, setAndCascade, setValue, setValue
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, exploreSetting, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observe, observeOwnValue, sampleUsingDefaultRandom, setAndCascade, setAndCascade, setParents, setParents, setValue, unobserve
public BoolReduceVertex(int[] shape, java.util.Collection<Vertex<BooleanTensor>> input, java.util.function.BiFunction<BooleanTensor,BooleanTensor,BooleanTensor> reduceFunction)
public BoolReduceVertex(int[] shape, java.util.function.BiFunction<BooleanTensor,BooleanTensor,BooleanTensor> f, Vertex<BooleanTensor>... input)
public BooleanTensor sample(KeanuRandom random)
sample
in class Vertex<BooleanTensor>
random
- source of randomnesspublic BooleanTensor getDerivedValue()
getDerivedValue
in class NonProbabilisticBool