bayesnet.jayes.io.jbif
Class JayesBifWriter
- java.lang.Object
-
- bayesnet.jayes.io.jbif.JayesBifWriter
-
- All Implemented Interfaces:
- IBayesNetWriter, java.io.Closeable, java.lang.AutoCloseable
public class JayesBifWriter extends java.lang.Object implements IBayesNetWriter
Writer for the Jayes Binary Interchange Format (JBIF). JBIF conforms to the following grammar:- JBIF
- Header BayesNet
- Header
- (magicNumber: 0xBA7E5B1F) (formatVersion: 1)
- BayesNet
- Name (nodeCount:
int) NodeDeclaration* NodeDefinition* - Name
- (byteCount:
short) (utf8:byte...) - NodeDeclaration
- Name (outcomeCount:
int) Outcomes* - Outcome
- Name
- NodeDefinition
- Parents CPT
- Parents
- (parentCount:
byte) parentIds: (int...) - CPT
- (entryCount:
int) (probabilities:double...)
-
-
Constructor Summary
Constructors Constructor and Description JayesBifWriter(java.io.OutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()voidwrite(BayesNet bayesNet)
-
-
-
Method Detail
-
write
public void write(BayesNet bayesNet) throws java.io.IOException
- Specified by:
writein interfaceIBayesNetWriter- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG