![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
<agrum/MN/io/UAI/UAIMNWriter.h> More...
#include <UAIMNWriter.h>
Public Member Functions | |
void | write (std::ostream &output, const IMarkovNet< GUM_SCALAR > &MN) final |
Writes an Markov net in the given ouput stream. More... | |
void | write (const std::string &filePath, const IMarkovNet< GUM_SCALAR > &MN) final |
Writes an Markov net in the file referenced by filePath. More... | |
Constructor & destructor | |
UAIMNWriter () | |
Default constructor. More... | |
~UAIMNWriter () final | |
Destructor. More... | |
<agrum/MN/io/UAI/UAIMNWriter.h>
Writes an Markov net in a text file with UAI format
This class export a Markov 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 UAIMNWriter.h.
gum::UAIMNWriter< GUM_SCALAR >::UAIMNWriter | ( | ) |
Default constructor.
|
final |
Destructor.
|
private |
|
private |
Returns the header of the BIF file.
|
finalvirtual |
Writes an Markov net in the given ouput stream.
output | The output stream. |
MN | The Markov net writen in the stream. |
IOError | Raised if an I/O error occurs. |
Implements gum::MNWriter< GUM_SCALAR >.
|
finalvirtual |
Writes an Markov 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 Markov net. |
MN | The Markov net writen in the file. |
IOError | Raised if an I/O error occurs. |
Implements gum::MNWriter< GUM_SCALAR >.