26 #ifndef GUM_LEARNING_DBROW_GENERATOR_WITH_BN_H 27 #define GUM_LEARNING_DBROW_GENERATOR_WITH_BN_H 78 template <
typename GUM_SCALAR =
double,
79 template <
typename >
class ALLOC = std::allocator >
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods
Class representing a Bayesian Network.
The base class for all DBRow generators.
~DBRowGeneratorWithBN()
destructor
DBRowGeneratorGoal
the type of things that a DBRowGenerator is designed for
const BayesNet< GUM_SCALAR > * _bn
the Bayesian network used to fill the unobserved values
Class representing Bayesian networks.
gum is the global namespace for all aGrUM entities
Implementation of a variable elimination algorithm for inference in Bayesian Networks.
DBRowGeneratorGoal goal() const
returns the goal of the DBRowGenerator
DBTranslatedValueType
The nature of the elements handled by translators (discrete, continuous).
Base class for DBRowGenerator classes that use a BN for computing their outputs.
DBRowGeneratorWithBN< GUM_SCALAR, ALLOC > & operator=(const DBRowGeneratorWithBN< GUM_SCALAR, ALLOC > &from)
copy operator
Bijection< NodeId, std::size_t, ALLOC< std::size_t > > _nodeId2columns
the mapping betwen the BN's node ids and the database's columns
Set of pairs of elements with fast search for both elements.
allocator_type getAllocator() const
returns the allocator used
virtual void setBayesNet(const BayesNet< GUM_SCALAR > &new_bn)
assign a new Bayes net to the generator
DBRowGeneratorWithBN(const std::vector< DBTranslatedValueType, ALLOC< DBTranslatedValueType > > column_types, const BayesNet< GUM_SCALAR > &bn, const DBRowGeneratorGoal goal, const Bijection< NodeId, std::size_t, ALLOC< std::size_t > > &nodeId2columns=Bijection< NodeId, std::size_t, ALLOC< std::size_t > >(), const allocator_type &alloc=allocator_type())
default constructor
const BayesNet< GUM_SCALAR > & getBayesNet() const
returns the Bayes net used by the generator
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods
The base class for all DBRow generators.
Size NodeId
Type for node ids.
Set of pairs of elements with fast search for both elements.
A DBRowGenerator class that returns incomplete rows as EM would do.