STK++ 0.9.13
|
A mixture manager is a factory class for injection dependency in the STK++ derived class of the MixtureComposer class. More...
#include <STK_PoissonMixtureManager.h>
Public Member Functions | |
PoissonMixtureManager (DataHandler const &handler) | |
Default constructor, need an instance of a DataHandler. | |
~PoissonMixtureManager () | |
destructor | |
void | getMissingValuesImpl (IMixture *p_mixture, MissingValues &missing) const |
get the missing values from an IMixture. | |
void | getParametersImpl (IMixture *p_mixture, ArrayXX ¶m) const |
get the parameters from an IMixture. | |
void | setParametersImpl (IMixture *p_mixture, ArrayXX const ¶m) const |
set the parameters to an IMixture. | |
IMixture * | createMixtureImpl (String const &modelName, String const &idData, int nbCluster) |
create a concrete mixture and initialize it. | |
IDataBridge * | getDataBridge (String const &idData) const |
Utility lookup function allowing to find a DataBridge from its idData. | |
Clust::Mixture | getIdModel (String const &idData) const |
Utility function allowing to find the idModel from the idData. | |
void | registerDataBridge (IDataBridge *p_data) |
register a data bridge to the IMixtureManager. | |
DataHandler const *const | p_handler () const |
![]() | |
IMixtureManager (DataHandler const *const p_handler) | |
Default constructor, need an instance of a DataHandler. | |
~IMixtureManager () | |
destructor | |
DataHandler const *const | p_handler () const |
Clust::Mixture | getIdModel (String const &idData) const |
Utility function allowing to find the idModel from the idData. | |
String | getIdModelName (String const &idData) const |
Utility function allowing to find the idModel name from the idData. | |
IMixture * | createMixture (String const &idData, int nbCluster) |
create a mixture and initialize it. | |
void | registerDataBridge (IDataBridge *p_data) |
register a data bridge to the IMixtureManager. | |
void | releaseDataBridge (String const &idData) |
release a data bridge from v_data_. | |
Data const & | getData (String const &idData) const |
get the wrapper for any kind of data set using its Id | |
void | getMissingValues (IMixture *p_mixture, MissingValues &missing) const |
get the missing values | |
void | getParameters (IMixture *p_mixture, ArrayXX &data) const |
get the parameters from an IMixture. | |
void | setParameters (IMixture *p_mixture, ArrayXX const &data) const |
set the parameters from an IMixture. | |
![]() | |
Derived & | asDerived () |
static cast : return a reference of this with a cast to the derived class. | |
Derived const & | asDerived () const |
static cast : return a const reference of this with a cast to the derived class. | |
Derived * | asPtrDerived () |
static cast : return a ptr on a Derived of this with a cast to the derived class. | |
Derived const * | asPtrDerived () const |
static cast : return a ptr on a constant Derived of this with a cast to the derived class. | |
Derived * | clone () const |
create a leaf using the copy constructor of the Derived class. | |
Derived * | clone (bool isRef) const |
create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not. | |
Private Member Functions | |
IMixture * | createMixtureImpl (Clust::Mixture idModel, String const &idData, int nbCluster) |
create a concrete mixture and initialize it. | |
Additional Inherited Members | |
![]() | |
IDataBridge * | getDataBridge (String const &idData) const |
Utility lookup function allowing to find a DataBridge from its idData. | |
![]() | |
IRecursiveTemplate () | |
constructor. | |
~IRecursiveTemplate () | |
destructor. | |
A mixture manager is a factory class for injection dependency in the STK++ derived class of the MixtureComposer class.
It allows to handle all the creation and initialization stuff needed by the (bridged) mixture models of the stkpp library.
DataHandler | is any concrete class from the interface DataHandlerBase |
Definition at line 97 of file STK_PoissonMixtureManager.h.
typedef IMixtureManager< PoissonMixtureManager > STK::PoissonMixtureManager< DataHandler >::Base |
Definition at line 106 of file STK_PoissonMixtureManager.h.
typedef hidden::MixtureManagerTraits<PoissonMixtureManager>::Data STK::PoissonMixtureManager< DataHandler >::Data |
Definition at line 103 of file STK_PoissonMixtureManager.h.
typedef hidden::MixtureManagerTraits<PoissonMixtureManager>::DataBridgeType STK::PoissonMixtureManager< DataHandler >::DataBridgeType |
Definition at line 104 of file STK_PoissonMixtureManager.h.
typedef hidden::MixtureManagerTraits<PoissonMixtureManager>::MissingIndexes STK::PoissonMixtureManager< DataHandler >::MissingIndexes |
Definition at line 101 of file STK_PoissonMixtureManager.h.
typedef hidden::MixtureManagerTraits<PoissonMixtureManager>::MissingValues STK::PoissonMixtureManager< DataHandler >::MissingValues |
Definition at line 102 of file STK_PoissonMixtureManager.h.
typedef PoissonBridge<Clust::Poisson_ljk_, Data> STK::PoissonMixtureManager< DataHandler >::MixtureBridge_ljk |
Definition at line 113 of file STK_PoissonMixtureManager.h.
typedef PoissonBridge<Clust::Poisson_ljlk_, Data> STK::PoissonMixtureManager< DataHandler >::MixtureBridge_ljlk |
Definition at line 115 of file STK_PoissonMixtureManager.h.
typedef PoissonBridge<Clust::Poisson_lk_, Data> STK::PoissonMixtureManager< DataHandler >::MixtureBridge_lk |
Definition at line 114 of file STK_PoissonMixtureManager.h.
typedef hidden::MixtureManagerTraits<PoissonMixtureManager>::Type STK::PoissonMixtureManager< DataHandler >::Type |
Definition at line 100 of file STK_PoissonMixtureManager.h.
|
inline |
Default constructor, need an instance of a DataHandler.
Definition at line 118 of file STK_PoissonMixtureManager.h.
|
inline |
|
inlineprivate |
create a concrete mixture and initialize it.
idModel | Id number of the model |
idData | Id name of the data |
nbCluster | number of cluster of the model |
Definition at line 211 of file STK_PoissonMixtureManager.h.
References STK::PoissonMixtureManager< DataHandler >::p_handler(), STK::Clust::Poisson_ljk_, STK::Clust::Poisson_ljlk_, STK::Clust::Poisson_lk_, and STK::PoissonMixtureManager< DataHandler >::registerDataBridge().
|
inline |
create a concrete mixture and initialize it.
modelName | a valid model name |
idData | Id of the data |
nbCluster | number of cluster of the model |
Definition at line 199 of file STK_PoissonMixtureManager.h.
References STK::PoissonMixtureManager< DataHandler >::createMixtureImpl(), and STK::Clust::stringToMixture().
Referenced by STK::PoissonMixtureManager< DataHandler >::createMixtureImpl().
IDataBridge * STK::IMixtureManager< Derived >::getDataBridge | ( | String const & | idData | ) | const |
Utility lookup function allowing to find a DataBridge from its idData.
idData | the id name of the mixture we want to get |
Definition at line 151 of file STK_IMixtureManager.h.
Clust::Mixture STK::IMixtureManager< Derived >::getIdModel | ( | String const & | idData | ) | const |
Utility function allowing to find the idModel from the idData.
idData | the id name of the data we want the idModel |
Definition at line 91 of file STK_IMixtureManager.h.
Referenced by STK::PoissonMixtureManager< DataHandler >::getMissingValuesImpl(), STK::PoissonMixtureManager< DataHandler >::getParametersImpl(), and STK::PoissonMixtureManager< DataHandler >::setParametersImpl().
|
inline |
get the missing values from an IMixture.
p_mixture | pointer on the mixture |
missing | structure to return with the missing values |
Definition at line 126 of file STK_PoissonMixtureManager.h.
References STK::PoissonMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< PoissonMixtureManager< DataHandler > >::getMissingValues(), STK::Clust::Poisson_ljk_, STK::Clust::Poisson_ljlk_, STK::Clust::Poisson_lk_, and STK::Clust::unknown_mixture_.
|
inline |
get the parameters from an IMixture.
p_mixture | pointer on the mixture |
param | the array to return with the parameters |
Definition at line 150 of file STK_PoissonMixtureManager.h.
References STK::PoissonMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< PoissonMixtureManager< DataHandler > >::getParameters(), STK::Clust::Poisson_ljk_, STK::Clust::Poisson_ljlk_, STK::Clust::Poisson_lk_, and STK::Clust::unknown_mixture_.
|
inline |
Definition at line 85 of file STK_IMixtureManager.h.
Referenced by STK::PoissonMixtureManager< DataHandler >::createMixtureImpl().
void STK::IMixtureManager< Derived >::registerDataBridge | ( | IDataBridge * | p_data | ) |
register a data bridge to the IMixtureManager.
For each mixture created and registered, a data bridge is created and registered so that it will be deleted when the mixture itself is deleted.
p_data | a pointer on the data manager |
Definition at line 114 of file STK_IMixtureManager.h.
Referenced by STK::PoissonMixtureManager< DataHandler >::createMixtureImpl().
|
inline |
set the parameters to an IMixture.
p_mixture | pointer on the mixture |
param | the array with the parameters to set |
Definition at line 174 of file STK_PoissonMixtureManager.h.
References STK::PoissonMixtureManager< DataHandler >::getIdModel(), STK::Clust::Poisson_ljk_, STK::Clust::Poisson_ljlk_, STK::Clust::Poisson_lk_, STK::IMixtureManager< PoissonMixtureManager< DataHandler > >::setParameters(), and STK::Clust::unknown_mixture_.