aGrUM  0.16.0
simpleCPTGenerator.h
Go to the documentation of this file.
1 
28 #ifndef GUM_SIMPLE_CPT_GENERATOR_H
29 #define GUM_SIMPLE_CPT_GENERATOR_H
30 
31 #include <cstdlib>
32 
34 #include <agrum/agrum.h>
35 
36 namespace gum {
37 
45  template < typename GUM_SCALAR >
46  class SimpleCPTGenerator : public ICPTGenerator< GUM_SCALAR > {
47  public:
48  // ############################################################################
50  // ############################################################################
52 
56 
60  ~SimpleCPTGenerator() override;
62 
63  // ############################################################################
65  // ############################################################################
67 
72  void generateCPT(const Idx& varId,
73  const Potential< GUM_SCALAR >& cpt) override;
74  };
75 
76 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
77  extern template class SimpleCPTGenerator< double >;
78 #endif
79 
80 } /* namespace gum */
81 
83 #endif /* GUM_SIMPLE_CPT_GENERATOR_H */
aGrUM&#39;s Potential is a multi-dimensional array with tensor operators.
Definition: potential.h:60
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
SimpleCPTGenerator()
Default constructor.
~SimpleCPTGenerator() override
Destructor.
<agrum/BN/generator/simpleCPTGenerator.h>
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size Idx
Type for indexes.
Definition: types.h:53
void generateCPT(const Idx &varId, const Potential< GUM_SCALAR > &cpt) override
Generates a CPT using floats.