aima.probability
Class ProbabilityDistribution
java.lang.Object
aima.probability.ProbabilityDistribution
public class ProbabilityDistribution
- extends java.lang.Object
Method Summary |
double |
probabilityOf(java.util.Hashtable conditions)
|
double |
probabilityOf(java.lang.String variableName,
boolean b)
|
void |
set(boolean[] values,
double probability)
|
void |
set(boolean value1,
boolean value2,
boolean value3,
boolean value4,
double probability)
|
void |
set(boolean value1,
boolean value2,
boolean value3,
double probability)
|
void |
set(boolean value1,
boolean value2,
double probability)
|
void |
set(boolean value1,
double probability)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ProbabilityDistribution
public ProbabilityDistribution(java.lang.String variableNameOne)
ProbabilityDistribution
public ProbabilityDistribution(java.lang.String variableNameOne,
java.lang.String variableNameTwo)
ProbabilityDistribution
public ProbabilityDistribution(java.lang.String variableNameOne,
java.lang.String variableNameTwo,
java.lang.String variableNameThree)
ProbabilityDistribution
public ProbabilityDistribution(java.lang.String variableNameOne,
java.lang.String variableNameTwo,
java.lang.String variableNameThree,
java.lang.String variableNameFour)
ProbabilityDistribution
public ProbabilityDistribution(java.lang.String[] variableNames)
set
public void set(boolean[] values,
double probability)
set
public void set(boolean value1,
double probability)
set
public void set(boolean value1,
boolean value2,
double probability)
set
public void set(boolean value1,
boolean value2,
boolean value3,
double probability)
set
public void set(boolean value1,
boolean value2,
boolean value3,
boolean value4,
double probability)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
probabilityOf
public double probabilityOf(java.util.Hashtable conditions)
probabilityOf
public double probabilityOf(java.lang.String variableName,
boolean b)