<agrum/BN/io/UAI/UAIWriter.h>
More...
#include <UAIWriter.h>
template<typename GUM_SCALAR>
class gum::UAIWriter< GUM_SCALAR >
<agrum/BN/io/UAI/UAIWriter.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 57 of file UAIWriter.h.
◆ UAIWriter()
template<typename GUM_SCALAR >
◆ ~UAIWriter()
template<typename GUM_SCALAR >
◆ __cptBloc()
template<typename GUM_SCALAR >
◆ __preambule()
template<typename GUM_SCALAR >
Returns the header of the BIF file.
◆ write() [1/2]
template<typename GUM_SCALAR >
Writes an bayes net in the given ouput stream.
- Parameters
-
output | The output stream. |
bn | The bayes net writen in the stream. |
- Exceptions
-
IOError | Raised if an I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
◆ write() [2/2]
template<typename GUM_SCALAR >
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.
- Parameters
-
filePath | The path to the file used to write the bayes net. |
bn | The bayes net writen in the file. |
- Exceptions
-
IOError | Raised if an I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
The documentation for this class was generated from the following file: