public class BooleanProxyVertex extends BooleanVertex implements ProxyVertex<BooleanVertex>, NonProbabilistic<BooleanTensor>
| Constructor and Description |
|---|
BooleanProxyVertex(long[] shape,
java.lang.String label) |
BooleanProxyVertex(long[] shape,
java.lang.String labelString,
BooleanVertex parent) |
BooleanProxyVertex(long[] shape,
VertexLabel label) |
BooleanProxyVertex(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 |
|---|---|
BooleanTensor |
calculate() |
java.lang.String |
getLabelParameter() |
BooleanVertex |
getParent() |
boolean |
hasParent() |
<V extends Vertex<BooleanTensor>> |
setLabel(VertexLabel label)
Set a label for this vertex.
|
void |
setParent(BooleanVertex newParent) |
and, and, and, assertTrue, assertTrue, concat, equalTo, getValue, loadValue, not, not, notEqualTo, observe, observe, or, or, or, reshape, saveValue, setAndCascade, setAndCascade, setValue, setValue, slice, takeaddChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, print, print, removeLabel, save, setAndCascade, setLabel, setParents, setParents, setState, setValue, toString, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontradictsObservationgetObservedValue, isObserved, observe, unobservepublic BooleanProxyVertex(VertexLabel label)
label - The label for this Vertex (all Proxy Vertices must be labelled)public BooleanProxyVertex(long[] shape,
VertexLabel label)
public BooleanProxyVertex(long[] shape,
java.lang.String labelString,
BooleanVertex parent)
public BooleanProxyVertex(long[] shape,
java.lang.String label)
public <V extends Vertex<BooleanTensor>> V setLabel(VertexLabel label)
VertexsetLabel in class Vertex<BooleanTensor>V - vertex typelabel - The label to apply to this vertex. Uniqueness is only enforced on instantiation of a Bayes Netpublic BooleanTensor calculate()
calculate in interface NonProbabilistic<BooleanTensor>public void setParent(BooleanVertex newParent)
setParent in interface ProxyVertex<BooleanVertex>public BooleanVertex getParent()
public boolean hasParent()
hasParent in interface ProxyVertex<BooleanVertex>public java.lang.String getLabelParameter()