30 #ifndef GUM_CNF_WRITER_H 31 #define GUM_CNF_WRITER_H 63 template <
typename GUM_SCALAR,
64 template <
typename >
class IApproximationPolicy = ExactPolicy >
67 ,
public IApproximationPolicy< GUM_SCALAR > {
93 void write(std::ostream& output,
104 void write(
const std::string& filePath,
107 inline GUM_SCALAR
fromExact(
const GUM_SCALAR& value)
const override {
108 return IApproximationPolicy< GUM_SCALAR >::fromExact(value);
113 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 120 #endif // GUM_NET_WRITER_H Classes used to practice approximation on value.
void write(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) override=0
Writes a Bayesian Network in the output stream using the BN format.
GUM_SCALAR fromExact(const GUM_SCALAR &value) const override
Class representing the minimal interface for Bayesian Network.
gum is the global namespace for all aGrUM entities
Writes a IBayesNet in the BN format.
Classes used to practice approximation on value.
CNFWriter()
Default constructor.
~CNFWriter() override
Destructor.
Definition of abstract classes for file output manipulation of Bayesian Networks. ...
Pure virtual class for writting a BN to a file.
Class hash tables iterators.