aima.probability
Class BayesNetNode
java.lang.Object
aima.probability.BayesNetNode
public class BayesNetNode
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BayesNetNode
public BayesNetNode(java.lang.String variable)
influencedBy
public void influencedBy(BayesNetNode parent1)
influencedBy
public void influencedBy(BayesNetNode parent1,
BayesNetNode parent2)
setProbability
public void setProbability(boolean b,
double d)
setProbability
public void setProbability(boolean b,
boolean c,
double d)
getVariable
public java.lang.String getVariable()
getChildren
public java.util.List<BayesNetNode> getChildren()
getParents
public java.util.List<BayesNetNode> getParents()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
probabilityOf
public double probabilityOf(java.util.Hashtable conditions)
isTrueFor
public java.lang.Boolean isTrueFor(double probability,
java.util.Hashtable<java.lang.String,java.lang.Boolean> modelBuiltUpSoFar)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object