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_GammaMixtureManager.h>
Public Member Functions | |
GammaMixtureManager (DataHandler const &handler) | |
Default constructor, need an instance of a DataHandler. | |
~GammaMixtureManager () | |
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 from an IMixture. | |
IMixture * | createMixtureImpl (String const &modelName, String const &idData, int nbCluster) |
create a concrete mixture and initialize it. | |
void | registerDataBridge (IDataBridge *p_data) |
register a data bridge to the IMixtureManager. | |
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. | |
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 94 of file STK_GammaMixtureManager.h.
typedef IMixtureManager<GammaMixtureManager> STK::GammaMixtureManager< DataHandler >::Base |
Definition at line 103 of file STK_GammaMixtureManager.h.
typedef hidden::MixtureManagerTraits<GammaMixtureManager>::Data STK::GammaMixtureManager< DataHandler >::Data |
Definition at line 100 of file STK_GammaMixtureManager.h.
typedef hidden::MixtureManagerTraits<GammaMixtureManager>::DataBridgeType STK::GammaMixtureManager< DataHandler >::DataBridgeType |
Definition at line 101 of file STK_GammaMixtureManager.h.
typedef hidden::MixtureManagerTraits<GammaMixtureManager>::MissingIndexes STK::GammaMixtureManager< DataHandler >::MissingIndexes |
Definition at line 98 of file STK_GammaMixtureManager.h.
typedef hidden::MixtureManagerTraits<GammaMixtureManager>::MissingValues STK::GammaMixtureManager< DataHandler >::MissingValues |
Definition at line 99 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_a_bjk_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_a_bjk |
Definition at line 120 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_a_bk_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_a_bk |
Definition at line 121 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_aj_bjk_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_aj_bjk |
Definition at line 118 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_aj_bk_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_aj_bk |
Definition at line 119 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_ajk_b_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_ajk_b |
Definition at line 113 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_ajk_bj_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_ajk_bj |
Definition at line 112 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_ajk_bjk_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_ajk_bjk |
Definition at line 110 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_ajk_bk_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_ajk_bk |
Definition at line 111 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_ak_b_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_ak_b |
Definition at line 117 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_ak_bj_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_ak_bj |
Definition at line 116 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_ak_bjk_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_ak_bjk |
Definition at line 114 of file STK_GammaMixtureManager.h.
typedef GammaBridge<Clust::Gamma_ak_bk_, Data> STK::GammaMixtureManager< DataHandler >::MixtureBridge_ak_bk |
Definition at line 115 of file STK_GammaMixtureManager.h.
typedef hidden::MixtureManagerTraits<GammaMixtureManager>::Type STK::GammaMixtureManager< DataHandler >::Type |
Definition at line 97 of file STK_GammaMixtureManager.h.
|
inline |
Default constructor, need an instance of a DataHandler.
Definition at line 124 of file STK_GammaMixtureManager.h.
|
inline |
|
inlineprivate |
create a concrete mixture and initialize it.
idModel | Id name of the model |
idData | Id name of the data |
nbCluster | number of cluster of the model |
Definition at line 299 of file STK_GammaMixtureManager.h.
References STK::Clust::Gamma_a_bjk_, STK::Clust::Gamma_a_bk_, STK::Clust::Gamma_aj_bjk_, STK::Clust::Gamma_aj_bk_, STK::Clust::Gamma_ajk_b_, STK::Clust::Gamma_ajk_bj_, STK::Clust::Gamma_ajk_bjk_, STK::Clust::Gamma_ajk_bk_, STK::Clust::Gamma_ak_b_, STK::Clust::Gamma_ak_bj_, STK::Clust::Gamma_ak_bjk_, STK::Clust::Gamma_ak_bk_, and STK_CREATE_MIXTURE.
|
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 287 of file STK_GammaMixtureManager.h.
References STK::GammaMixtureManager< DataHandler >::createMixtureImpl(), and STK::Clust::stringToMixture().
Referenced by STK::GammaMixtureManager< 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::GammaMixtureManager< DataHandler >::getMissingValuesImpl(), STK::GammaMixtureManager< DataHandler >::getParametersImpl(), and STK::GammaMixtureManager< 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 132 of file STK_GammaMixtureManager.h.
References STK::Clust::Gamma_a_bjk_, STK::Clust::Gamma_a_bk_, STK::Clust::Gamma_aj_bjk_, STK::Clust::Gamma_aj_bk_, STK::Clust::Gamma_ajk_b_, STK::Clust::Gamma_ajk_bj_, STK::Clust::Gamma_ajk_bjk_, STK::Clust::Gamma_ajk_bk_, STK::Clust::Gamma_ak_b_, STK::Clust::Gamma_ak_bj_, STK::Clust::Gamma_ak_bjk_, STK::Clust::Gamma_ak_bk_, STK::GammaMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< GammaMixtureManager< DataHandler > >::getMissingValues(), 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 183 of file STK_GammaMixtureManager.h.
References STK::Clust::Gamma_a_bjk_, STK::Clust::Gamma_a_bk_, STK::Clust::Gamma_aj_bjk_, STK::Clust::Gamma_aj_bk_, STK::Clust::Gamma_ajk_b_, STK::Clust::Gamma_ajk_bj_, STK::Clust::Gamma_ajk_bjk_, STK::Clust::Gamma_ajk_bk_, STK::Clust::Gamma_ak_b_, STK::Clust::Gamma_ak_bj_, STK::Clust::Gamma_ak_bjk_, STK::Clust::Gamma_ak_bk_, STK::GammaMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< GammaMixtureManager< DataHandler > >::getParameters(), and STK::Clust::unknown_mixture_.
|
inline |
Definition at line 85 of file STK_IMixtureManager.h.
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.
|
inline |
set the parameters from an IMixture.
p_mixture | pointer on the mixture |
param | the array with the parameters to set |
Definition at line 234 of file STK_GammaMixtureManager.h.
References STK::Clust::Gamma_a_bjk_, STK::Clust::Gamma_a_bk_, STK::Clust::Gamma_aj_bjk_, STK::Clust::Gamma_aj_bk_, STK::Clust::Gamma_ajk_b_, STK::Clust::Gamma_ajk_bj_, STK::Clust::Gamma_ajk_bjk_, STK::Clust::Gamma_ajk_bk_, STK::Clust::Gamma_ak_b_, STK::Clust::Gamma_ak_bj_, STK::Clust::Gamma_ak_bjk_, STK::Clust::Gamma_ak_bk_, STK::GammaMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< GammaMixtureManager< DataHandler > >::setParameters(), and STK::Clust::unknown_mixture_.