public class IntegerProxyVertex extends IntegerVertex implements ProxyVertex<IntegerVertex>, NonProbabilistic<IntegerTensor>
Constructor and Description |
---|
IntegerProxyVertex(int[] shape,
VertexLabel label) |
IntegerProxyVertex(VertexLabel label)
This vertex acts as a "Proxy" to allow a BayesNet to be built up before parents are explicitly known (ie for
model in model scenarios) but allows linking at a later point in time.
|
Modifier and Type | Method and Description |
---|---|
IntegerTensor |
calculate() |
IntegerVertex |
getParent() |
boolean |
hasParent() |
IntegerTensor |
sample(KeanuRandom random) |
void |
setParent(IntegerVertex newParent) |
abs, concat, div, div, divideBy, divideBy, divideBy, equalTo, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, minus, minus, minus, multiply, multiply, multiply, notEqualTo, observe, observe, plus, plus, plus, pow, pow, reshape, setAndCascade, setAndCascade, setValue, setValue, slice, sum, take, times, times, unaryMinus
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 IntegerProxyVertex(VertexLabel label)
label
- The label for this Vertex (all Proxy Vertices must be labelled)public IntegerProxyVertex(int[] shape, VertexLabel label)
public IntegerTensor calculate()
calculate
in interface NonProbabilistic<IntegerTensor>
public IntegerTensor sample(KeanuRandom random)
sample
in class Vertex<IntegerTensor>
random
- source of randomnesspublic void setParent(IntegerVertex newParent)
setParent
in interface ProxyVertex<IntegerVertex>
public IntegerVertex getParent()
public boolean hasParent()
hasParent
in interface ProxyVertex<IntegerVertex>