![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
<agrum/PRM/generator/clusteredLayerGenerator.h> More...
#include <clusteredLayerGenerator.h>
Public Member Functions | |
Constructors and destructor. | |
ClusteredLayerGenerator () | |
Default constructor. More... | |
ClusteredLayerGenerator (const ClusteredLayerGenerator &source) | |
Copy constructor. More... | |
ClusteredLayerGenerator & | operator= (const ClusteredLayerGenerator &source) |
Copy operator. More... | |
virtual | ~ClusteredLayerGenerator () |
Destructor. More... | |
Size | getDomainSize () const |
Getters and setters. More... | |
void | setDomainSize (Size s) |
Set the domain size of generated types. More... | |
Size | getMaxParents () const |
Returns the max number of parents allowed for any attribute or aggregator. More... | |
void | setMaxParents (Size s) |
Returns the max number of parents allowed for any attribute or aggregator. More... | |
double | getClusterRatio () const |
Returns the odds of a given class to be replaced by a cluster. More... | |
void | setClusterRatio (double ratio) |
Define the odds of a given class to be replaced by a cluster. More... | |
void | setLayers (const std::vector< typename LayerGenerator< GUM_SCALAR >::LayerData > &v) |
Defines the structure of each layers. More... | |
std::vector< typename LayerGenerator< GUM_SCALAR >::LayerData > & | getLayer () |
Getters and setters. More... | |
const std::vector< typename LayerGenerator< GUM_SCALAR >::LayerData > & | getLayer () const |
Getters and setters. More... | |
virtual PRM< GUM_SCALAR > * | generate () |
Proceeds with the generation of the PRM<GUM_SCALAR>. More... | |
void | setNameGenerator (const NameGenerator &name_gen) |
Getters and setters. More... | |
const NameGenerator & | getNameGenerator () const |
Returns the NameGenerator used by this generator. More... | |
Protected Attributes | |
NameGenerator | name_gen_ |
The name generator used by this class. More... | |
Classes | |
struct | MyData |
<agrum/PRM/generator/clusteredLayerGenerator.h>
This class generates PRMs with a clustered layer structure.
Definition at line 56 of file clusteredLayerGenerator.h.
INLINE gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::ClusteredLayerGenerator | ( | ) |
Default constructor.
Definition at line 502 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::ClusteredLayerGenerator | ( | const ClusteredLayerGenerator< GUM_SCALAR > & | source | ) |
Copy constructor.
Definition at line 508 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
virtual |
Destructor.
Definition at line 516 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 303 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 362 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 93 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 115 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 64 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 412 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 49 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
virtual |
Proceeds with the generation of the PRM<GUM_SCALAR>.
Implements gum::prm::PRMGenerator< GUM_SCALAR >.
Definition at line 33 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE double gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::getClusterRatio | ( | ) | const |
Returns the odds of a given class to be replaced by a cluster.
Definition at line 575 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE Size gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::getDomainSize | ( | ) | const |
Getters and setters.
Returns the domain size of generated types.
Definition at line 537 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE std::vector< typename LayerGenerator< GUM_SCALAR >::LayerData > & gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::getLayer | ( | ) |
Getters and setters.
Returns the domain size of generated types.
Definition at line 564 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE const std::vector< typename LayerGenerator< GUM_SCALAR >::LayerData > & gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::getLayer | ( | ) | const |
Getters and setters.
Returns the domain size of generated types.
Definition at line 570 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE Size gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::getMaxParents | ( | ) | const |
Returns the max number of parents allowed for any attribute or aggregator.
Definition at line 547 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
inherited |
Returns the NameGenerator used by this generator.
Definition at line 55 of file PRMGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE ClusteredLayerGenerator< GUM_SCALAR > & gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::operator= | ( | const ClusteredLayerGenerator< GUM_SCALAR > & | source | ) |
Copy operator.
Definition at line 528 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE void gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::setClusterRatio | ( | double | ratio | ) |
Define the odds of a given class to be replaced by a cluster.
Definition at line 580 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE void gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::setDomainSize | ( | Size | s | ) |
Set the domain size of generated types.
Definition at line 542 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE void gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::setLayers | ( | const std::vector< typename LayerGenerator< GUM_SCALAR >::LayerData > & | v | ) |
Defines the structure of each layers.
Each value in v defines a layer, were v[i].first is the number of different classes in the i-th layer and v[i].second is the number of instances in the i-th layer.
v | A vector describing each layer. |
Definition at line 557 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
INLINE void gum::prm::ClusteredLayerGenerator< GUM_SCALAR >::setMaxParents | ( | Size | s | ) |
Returns the max number of parents allowed for any attribute or aggregator.
Definition at line 552 of file clusteredLayerGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
inherited |
Getters and setters.
Defines the NameGenerator used by this generator.
Definition at line 50 of file PRMGenerator_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
private |
Definition at line 119 of file clusteredLayerGenerator.h.
|
private |
Definition at line 118 of file clusteredLayerGenerator.h.
|
private |
Definition at line 116 of file clusteredLayerGenerator.h.
|
private |
Definition at line 115 of file clusteredLayerGenerator.h.
|
private |
Definition at line 117 of file clusteredLayerGenerator.h.
|
protectedinherited |
The name generator used by this class.
Definition at line 80 of file PRMGenerator.h.