public class ConstantBoolVertex extends BoolVertex implements NonProbabilistic<BooleanTensor>
Modifier and Type | Field and Description |
---|---|
static BoolVertex |
FALSE |
static BoolVertex |
TRUE |
Constructor and Description |
---|
ConstantBoolVertex(boolean constant) |
ConstantBoolVertex(boolean[] vector) |
ConstantBoolVertex(BooleanTensor constant) |
Modifier and Type | Method and Description |
---|---|
BooleanTensor |
calculate() |
BooleanTensor |
sample(KeanuRandom random) |
and, and, and, concat, equalTo, getValue, not, not, notEqualTo, observe, observe, or, or, 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, lazyEval, observe, observeOwnValue, removeLabel, sample, setAndCascade, setLabel, setLabel, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, unobserve
public static final BoolVertex TRUE
public static final BoolVertex FALSE
public ConstantBoolVertex(BooleanTensor constant)
public ConstantBoolVertex(boolean constant)
public ConstantBoolVertex(boolean[] vector)
public BooleanTensor sample(KeanuRandom random)
sample
in class Vertex<BooleanTensor>
random
- source of randomnesspublic BooleanTensor calculate()
calculate
in interface NonProbabilistic<BooleanTensor>