![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Writes a IBayesNet in the BN format. More...
#include <agrum/BN/io/cnf/CNFWriter.h>
Public Member Functions | |
void | write (std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) override=0 |
Writes a Bayesian network in the output stream using the BN format. More... | |
void | write (const std::string &filePath, const IBayesNet< GUM_SCALAR > &bn) override=0 |
Writes a Bayesian network in the referenced file using the BN format. More... | |
GUM_SCALAR | fromExact (const GUM_SCALAR &value) const override |
Constructor & destructor | |
CNFWriter () | |
Default constructor. More... | |
~CNFWriter () override | |
Destructor. More... | |
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 66 of file CNFWriter.h.
gum::CNFWriter< GUM_SCALAR, IApproximationPolicy >::CNFWriter | ( | ) |
Default constructor.
|
override |
Destructor.
|
inlineoverride |
Definition at line 104 of file CNFWriter.h.
|
overridepure virtual |
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::BNWriter< GUM_SCALAR >.
Implemented in gum::ContextualDependenciesCNFWriter< GUM_SCALAR, IApproximationPolicy >, gum::FactorisedValuesCNFWriter< GUM_SCALAR, IApproximationPolicy >, and gum::GeneralizedCNFWriter< GUM_SCALAR, IApproximationPolicy >.
|
overridepure virtual |
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::BNWriter< GUM_SCALAR >.
Implemented in gum::ContextualDependenciesCNFWriter< GUM_SCALAR, IApproximationPolicy >, gum::FactorisedValuesCNFWriter< GUM_SCALAR, IApproximationPolicy >, and gum::GeneralizedCNFWriter< GUM_SCALAR, IApproximationPolicy >.