aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
gum::SimpleCPTGenerator< GUM_SCALAR > Class Template Reference

<agrum/BN/generator/simpleCPTGenerator.h> More...

#include <simpleCPTGenerator.h>

Inheritance diagram for gum::SimpleCPTGenerator< GUM_SCALAR >:

Public Member Functions

Constructors / Destructor
 SimpleCPTGenerator ()
 Default constructor.
 ~SimpleCPTGenerator () override
 Destructor.
CPT generation methods
void generateCPT (const Idx &varId, const Tensor< GUM_SCALAR > &cpt) const override
 Generates a CPT using floats.

Detailed Description

template<typename GUM_SCALAR>
class gum::SimpleCPTGenerator< GUM_SCALAR >

<agrum/BN/generator/simpleCPTGenerator.h>

Class for generating Conditional Probability Tables.

This class implements a CPTGenerator CPT generation algorithm.

Definition at line 66 of file simpleCPTGenerator.h.

Constructor & Destructor Documentation

◆ SimpleCPTGenerator()

template<typename GUM_SCALAR>
INLINE gum::SimpleCPTGenerator< GUM_SCALAR >::SimpleCPTGenerator ( )

Default constructor.

Definition at line 57 of file simpleCPTGenerator_tpl.h.

57 : ICPTGenerator< GUM_SCALAR >() {
59 }
<agrum/BN/generator/simpleCPTGenerator.h>
SimpleCPTGenerator()
Default constructor.

References SimpleCPTGenerator().

Referenced by SimpleCPTGenerator(), and ~SimpleCPTGenerator().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~SimpleCPTGenerator()

template<typename GUM_SCALAR>
INLINE gum::SimpleCPTGenerator< GUM_SCALAR >::~SimpleCPTGenerator ( )
override

Destructor.

Definition at line 63 of file simpleCPTGenerator_tpl.h.

References SimpleCPTGenerator().

Here is the call graph for this function:

Member Function Documentation

◆ generateCPT()

template<typename GUM_SCALAR>
void gum::SimpleCPTGenerator< GUM_SCALAR >::generateCPT ( const Idx & varId,
const Tensor< GUM_SCALAR > & cpt ) const
override

Generates a CPT using floats.

Parameters
varIdThe variable id of the CPT owner.
cptA reference on the CPT to fill.

Definition at line 72 of file simpleCPTGenerator_tpl.h.

73 {
74 cpt.random().normalizeAsCPT(varId);
75 }

The documentation for this class was generated from the following files: