![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
<agrum/BN/io/UAI/UAIBNWriter.h> More...
#include <UAIBNWriter.h>
Public Member Functions | |
void | write (std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final |
Writes an bayes net in the given ouput stream. More... | |
void | write (const std::string &filePath, const IBayesNet< GUM_SCALAR > &bn) final |
Writes an bayes net in the file referenced by filePath. More... | |
Constructor & destructor | |
UAIBNWriter () | |
Default constructor. More... | |
~UAIBNWriter () final | |
Destructor. More... | |
<agrum/BN/io/UAI/UAIBNWriter.h>
Writes an bayes net in a text file with UAI format
This class export a bayes net into an text file, using UAI format
cf. http://www.cs.huji.ac.il/project/PASCAL/fileFormat.php
Definition at line 56 of file UAIBNWriter.h.
gum::UAIBNWriter< GUM_SCALAR >::UAIBNWriter | ( | ) |
Default constructor.
|
final |
Destructor.
|
private |
|
private |
Returns the header of the BIF file.
|
finalvirtual |
Writes an bayes net in the given ouput stream.
output | The output stream. |
bn | The bayes net writen in the stream. |
IOError | Raised if an I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
|
finalvirtual |
Writes an bayes net in the file referenced by filePath.
If the file doesn't exists, it is created. If the file exists, it's content will be erased.
filePath | The path to the file used to write the bayes net. |
bn | The bayes net writen in the file. |
IOError | Raised if an I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.