|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.bayesian.bif.BIFUtil
public class BIFUtil
A utility class to read and write Bayesian networks in BIF format. http://www.heatonresearch.com/wiki/Bayesian_Interchange_Format
| Constructor Summary | |
|---|---|
BIFUtil()
|
|
| Method Summary | |
|---|---|
static String |
generateTable(BayesianEvent event)
Generate a table, in BIF format. |
static BayesianNetwork |
readBIF(File f)
|
static BayesianNetwork |
readBIF(InputStream is)
Read a BIF file from a stream. |
static BayesianNetwork |
readBIF(String f)
Read a BIF file. |
static boolean |
rollArgs(BayesianEvent event,
int[] args)
Iterate through the event arguments in the BIF way, which is different than Encog's method. |
static void |
writeBIF(File file,
BayesianNetwork network)
Write a Bayesian network to a BIF file. |
static void |
writeBIF(OutputStream os,
BayesianNetwork network)
Write a Bayesian network to an output stream in BIF format. |
static void |
writeBIF(String fn,
BayesianNetwork network)
Write a Bayesian network to BIF form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BIFUtil()
| Method Detail |
|---|
public static BayesianNetwork readBIF(String f)
f - The BIF file.
public static BayesianNetwork readBIF(File f)
public static BayesianNetwork readBIF(InputStream is)
is - The stream to read from.
public static void writeBIF(String fn,
BayesianNetwork network)
fn - The file name to save to.network - The network to save.
public static void writeBIF(File file,
BayesianNetwork network)
file - The file to save to.network - The network to save.
public static void writeBIF(OutputStream os,
BayesianNetwork network)
os - The output stream to write to.network - The network to write.public static String generateTable(BayesianEvent event)
event - The event to write.
public static boolean rollArgs(BayesianEvent event,
int[] args)
event - The event to save.args - The arguments.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||