Writes a IBayesNet in the BIF format.
More...
#include <agrum/BN/io/BIF/BIFWriter.h>
|
void | write (std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final |
| Writes a Bayesian network in the output stream using the BIF format. More...
|
|
void | write (const std::string &filePath, const IBayesNet< GUM_SCALAR > &bn) final |
| Writes a Bayesian network in the referenced file using the BIF format. More...
|
|
|
| BIFWriter () |
| Default constructor. More...
|
|
| ~BIFWriter () final |
| Destructor. More...
|
|
template<typename GUM_SCALAR>
class gum::BIFWriter< GUM_SCALAR >
Writes a IBayesNet in the BIF format.
This class servers to write the content of a Bayesian network in the BIF format. See http://www.cs.cmu.edu/~fgcozman/Research/InterchangeFormat/Old/xmlbif02.html for information on this format.
Definition at line 59 of file BIFWriter.h.
◆ BIFWriter()
template<typename GUM_SCALAR >
◆ ~BIFWriter()
template<typename GUM_SCALAR >
◆ _header_()
template<typename GUM_SCALAR >
◆ _variableBloc_()
template<typename GUM_SCALAR >
◆ _variableCPT_()
template<typename GUM_SCALAR >
◆ _variablesLabels_()
template<typename GUM_SCALAR >
◆ write() [1/2]
template<typename GUM_SCALAR >
Writes a Bayesian network in the output stream using the BIF format.
- Parameters
-
output | The output stream. |
bn | The Bayesian network writen in output. |
- Exceptions
-
IOError | Raised if and I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
◆ write() [2/2]
template<typename GUM_SCALAR >
Writes a Bayesian network in the referenced file using the BIF format.
If the files doesn't exists, it is created.
- Parameters
-
filePath | The path to the file used to write the Bayesian network. |
bn | The Bayesian network writed in the file. |
- Exceptions
-
IOError | Raised if and I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
The documentation for this class was generated from the following file: