|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.bayesian.table.BayesianTable
public class BayesianTable
Holds a Bayesian truth table.
Constructor Summary | |
---|---|
BayesianTable(BayesianEvent theEvent)
|
Method Summary | |
---|---|
void |
addLine(double prob,
boolean result,
boolean... args)
Add a new line. |
void |
addLine(double prob,
int result,
boolean... args)
Add a new line. |
void |
addLine(double prob,
int result,
int... args)
Add a new line. |
TableLine |
findLine(int result,
int[] args)
Find the specified truth table line. |
int |
generateRandom(int... args)
Generate a random sampling based on this truth table. |
List<TableLine> |
getLines()
|
int |
getMaxLines()
|
void |
reset()
Reset the truth table to zero. |
String |
toString()
|
void |
validate()
Validate the truth table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BayesianTable(BayesianEvent theEvent)
Method Detail |
---|
public void reset()
public void addLine(double prob, boolean result, boolean... args)
prob
- The probability.result
- The resulting probability.args
- The arguments.public void addLine(double prob, int result, boolean... args)
prob
- The probability.result
- The resulting probability.args
- The arguments.public void addLine(double prob, int result, int... args)
prob
- The probability.result
- The resulting probability.args
- The arguments.public void validate()
public int generateRandom(int... args)
args
- The arguemtns.
public String toString()
toString
in class Object
public List<TableLine> getLines()
public TableLine findLine(int result, int[] args)
result
- The result sought.args
- The arguments.
public int getMaxLines()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |