aima.probability
Class BayesNet
java.lang.Object
aima.probability.BayesNet
public class BayesNet
- extends java.lang.Object
Method Summary |
java.util.Hashtable |
getPriorSample()
|
java.util.Hashtable |
getPriorSample(Randomizer r)
|
java.util.List<java.lang.String> |
getVariables()
|
double[] |
likelihoodWeighting(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfSamples)
|
double[] |
likelihoodWeighting(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfSamples,
Randomizer r)
|
double[] |
mcmcAsk(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfVariables)
|
double[] |
mcmcAsk(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfVariables,
Randomizer r)
|
double |
probabilityOf(java.lang.String Y,
java.lang.Boolean value,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence)
|
double[] |
rejectionSample(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfSamples)
|
double[] |
rejectionSample(java.lang.String X,
java.util.Hashtable evidence,
int numberOfSamples,
Randomizer r)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BayesNet
public BayesNet(BayesNetNode root)
BayesNet
public BayesNet(BayesNetNode root1,
BayesNetNode root2)
BayesNet
public BayesNet(BayesNetNode root1,
BayesNetNode root2,
BayesNetNode root3)
BayesNet
public BayesNet(java.util.List<BayesNetNode> rootNodes)
getVariables
public java.util.List<java.lang.String> getVariables()
probabilityOf
public double probabilityOf(java.lang.String Y,
java.lang.Boolean value,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence)
getPriorSample
public java.util.Hashtable getPriorSample(Randomizer r)
getPriorSample
public java.util.Hashtable getPriorSample()
rejectionSample
public double[] rejectionSample(java.lang.String X,
java.util.Hashtable evidence,
int numberOfSamples,
Randomizer r)
likelihoodWeighting
public double[] likelihoodWeighting(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfSamples,
Randomizer r)
mcmcAsk
public double[] mcmcAsk(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfVariables,
Randomizer r)
mcmcAsk
public double[] mcmcAsk(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfVariables)
likelihoodWeighting
public double[] likelihoodWeighting(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfSamples)
rejectionSample
public double[] rejectionSample(java.lang.String X,
java.util.Hashtable<java.lang.String,java.lang.Boolean> evidence,
int numberOfSamples)