org.encog.ml.bayesian.bif
public class BIFUtil extends Object
Constructor and Description |
---|
BIFUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2014. All Rights Reserved.