public class BoolConcatenationVertex extends BoolVertex implements NonProbabilistic<BooleanTensor>
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 |
calculate() |
protected BooleanTensor |
op(BooleanTensor... inputs) |
BooleanTensor |
sample(KeanuRandom random) |
and, concat, equalTo, getValue, not, notEqualTo, observe, observe, 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, labeledAs, lazyEval, observe, observeOwnValue, sample, setAndCascade, setLabel, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, 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 calculate()
calculate
in interface NonProbabilistic<BooleanTensor>
public BooleanTensor sample(KeanuRandom random)
sample
in class Vertex<BooleanTensor>
random
- source of randomnessprotected BooleanTensor op(BooleanTensor... inputs)