aima.probability
Class BayesNetNode

java.lang.Object
  extended by aima.probability.BayesNetNode

public class BayesNetNode
extends java.lang.Object


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

Constructor Detail

BayesNetNode

public BayesNetNode(java.lang.String variable)
Method Detail

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