public class BoolConcatenationVertex extends NonProbabilisticBool
ID_GENERATOR
Constructor and Description |
---|
BoolConcatenationVertex(int dimension,
BoolVertex... input)
A vertex that can concatenate any amount of vertices along a given dimension.
|
Modifier and Type | Method and Description |
---|---|
BooleanTensor |
getDerivedValue() |
protected BooleanTensor |
op(BooleanTensor... inputs) |
BooleanTensor |
sample(KeanuRandom random) |
dLogPmf, isProbabilistic, logPmf, updateValue
and, dLogPmf, dLogPmf, getValue, logPmf, logPmf, not, observe, observe, or, pluck, setAndCascade, setAndCascade, setValue, setValue, slice
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 BoolConcatenationVertex(int dimension, BoolVertex... input)
dimension
- the dimension to concatenate on. This is the only dimension in which sizes may be different.input
- the input vertices to concatenatepublic BooleanTensor getDerivedValue()
getDerivedValue
in class NonProbabilisticBool
public BooleanTensor sample(KeanuRandom random)
sample
in class Vertex<BooleanTensor>
random
- source of randomnessprotected BooleanTensor op(BooleanTensor... inputs)