org.encog.ml.bayesian.table
public class BayesianTable extends Object implements Serializable
Constructor and Description |
---|
BayesianTable(BayesianEvent theEvent) |
Modifier and Type | Method and Description |
---|---|
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.
|
public BayesianTable(BayesianEvent theEvent)
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 TableLine findLine(int result, int[] args)
result
- The result sought.args
- The arguments.public int getMaxLines()
Copyright © 2014. All Rights Reserved.