public abstract class AbstractNode extends java.lang.Object implements Node
| Constructor and Description |
|---|
AbstractNode(RandomVariable var) |
AbstractNode(RandomVariable var,
Node... parents) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChild(Node childNode) |
boolean |
equals(java.lang.Object o) |
java.util.Set<Node> |
getChildren() |
abstract ConditionalProbabilityDistribution |
getCPD() |
java.util.Set<Node> |
getMarkovBlanket()
Get this Node's Markov Blanket:
'A node is conditionally independent of all other nodes in the network, given its parents, children, and children's parents - that is, given its MARKOV BLANKET (AIMA3e pg, 517). |
java.util.Set<Node> |
getParents() |
RandomVariable |
getRandomVariable() |
int |
hashCode() |
boolean |
isRoot() |
java.lang.String |
toString() |
public AbstractNode(RandomVariable var)
public AbstractNode(RandomVariable var, Node... parents)
public RandomVariable getRandomVariable()
getRandomVariable in interface Nodepublic boolean isRoot()
isRoot in interface NodeNode.getParents()public java.util.Set<Node> getParents()
getParents in interface Nodepublic java.util.Set<Node> getChildren()
getChildren in interface Nodepublic java.util.Set<Node> getMarkovBlanket()
NodegetMarkovBlanket in interface Nodepublic abstract ConditionalProbabilityDistribution getCPD()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected void addChild(Node childNode)