![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
<agrum/BN/io/cnf/ContextualDependenciesCNFWriter.h> More...
#include <ContextualDependenciesCNFWriter.h>
Public Member Functions | |
void | write (std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final |
Writes a Bayesian network in the output stream using the BN format. More... | |
void | write (const std::string &filePath, const IBayesNet< GUM_SCALAR > &bn) final |
Writes a Bayesian network in the referenced file using the BN format. More... | |
GUM_SCALAR | fromExact (const GUM_SCALAR &value) const override |
Constructor & destructor | |
ContextualDependenciesCNFWriter () | |
Default constructor. More... | |
~ContextualDependenciesCNFWriter () final | |
Destructor. More... | |
<agrum/BN/io/cnf/ContextualDependenciesCNFWriter.h>
Writes a IBayesNet in the BN format.
This class servers to write the content of a Bayesian network in the BN format. See TODO for information on this format.
Definition at line 60 of file ContextualDependenciesCNFWriter.h.
gum::ContextualDependenciesCNFWriter< GUM_SCALAR, IApproximationPolicy >::ContextualDependenciesCNFWriter | ( | ) |
Default constructor.
|
final |
Destructor.
|
inlineoverrideinherited |
Definition at line 104 of file CNFWriter.h.
|
finalvirtual |
Writes a Bayesian network in the output stream using the BN format.
output | The output stream. |
bn | The Bayesian network writen in output. |
IOError | Raised if and I/O error occurs. |
Implements gum::CNFWriter< GUM_SCALAR, IApproximationPolicy >.
|
finalvirtual |
Writes a Bayesian network in the referenced file using the BN format.
If the files doesn't exists, it is created.
filePath | The path to the file used to write the Bayesian network. |
bn | The Bayesian network writed in the file. |
IOError | Raised if and I/O error occurs. |
Implements gum::CNFWriter< GUM_SCALAR, IApproximationPolicy >.