|
STK++ 0.9.13
|
A mixture manager is a factory class for injection dependency in the STK++ derived class of the IMixtureComposer class. More...
#include <STK_DiagGaussianMixtureManager.h>

Public Member Functions | |
| DiagGaussianMixtureManager (DataHandler const &handler) | |
| Default constructor, need an instance of a DataHandler. | |
| ~DiagGaussianMixtureManager () | |
| 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 |
Public Member Functions inherited from STK::IMixtureManager< DiagGaussianMixtureManager< DataHandler > > | |
| 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. | |
Public Member Functions inherited from STK::IRecursiveTemplate< Derived > | |
| 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 | |
Protected Member Functions inherited from STK::IMixtureManager< DiagGaussianMixtureManager< DataHandler > > | |
| IDataBridge * | getDataBridge (String const &idData) const |
| Utility lookup function allowing to find a DataBridge from its idData. | |
Protected Member Functions inherited from STK::IRecursiveTemplate< Derived > | |
| IRecursiveTemplate () | |
| constructor. | |
| ~IRecursiveTemplate () | |
| destructor. | |
A mixture manager is a factory class for injection dependency in the STK++ derived class of the IMixtureComposer 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 95 of file STK_DiagGaussianMixtureManager.h.
| typedef IMixtureManager< DiagGaussianMixtureManager > STK::DiagGaussianMixtureManager< DataHandler >::Base |
Definition at line 104 of file STK_DiagGaussianMixtureManager.h.
| typedef hidden::MixtureManagerTraits<DiagGaussianMixtureManager>::Data STK::DiagGaussianMixtureManager< DataHandler >::Data |
Definition at line 101 of file STK_DiagGaussianMixtureManager.h.
| typedef hidden::MixtureManagerTraits<DiagGaussianMixtureManager>::DataBridgeType STK::DiagGaussianMixtureManager< DataHandler >::DataBridgeType |
Definition at line 102 of file STK_DiagGaussianMixtureManager.h.
| typedef hidden::MixtureManagerTraits<DiagGaussianMixtureManager>::MissingIndexes STK::DiagGaussianMixtureManager< DataHandler >::MissingIndexes |
Definition at line 99 of file STK_DiagGaussianMixtureManager.h.
| typedef hidden::MixtureManagerTraits<DiagGaussianMixtureManager>::MissingValues STK::DiagGaussianMixtureManager< DataHandler >::MissingValues |
Definition at line 100 of file STK_DiagGaussianMixtureManager.h.
| typedef DiagGaussianBridge<Clust::Gaussian_s_, Data> STK::DiagGaussianMixtureManager< DataHandler >::MixtureBridge_s |
Definition at line 115 of file STK_DiagGaussianMixtureManager.h.
| typedef DiagGaussianBridge<Clust::Gaussian_sj_, Data> STK::DiagGaussianMixtureManager< DataHandler >::MixtureBridge_sj |
Definition at line 113 of file STK_DiagGaussianMixtureManager.h.
| typedef DiagGaussianBridge<Clust::Gaussian_sjk_, Data> STK::DiagGaussianMixtureManager< DataHandler >::MixtureBridge_sjk |
Definition at line 111 of file STK_DiagGaussianMixtureManager.h.
| typedef DiagGaussianBridge<Clust::Gaussian_sjsk_, Data> STK::DiagGaussianMixtureManager< DataHandler >::MixtureBridge_sjsk |
Definition at line 114 of file STK_DiagGaussianMixtureManager.h.
| typedef DiagGaussianBridge<Clust::Gaussian_sk_, Data> STK::DiagGaussianMixtureManager< DataHandler >::MixtureBridge_sk |
Definition at line 112 of file STK_DiagGaussianMixtureManager.h.
| typedef hidden::MixtureManagerTraits<DiagGaussianMixtureManager>::Type STK::DiagGaussianMixtureManager< DataHandler >::Type |
Definition at line 98 of file STK_DiagGaussianMixtureManager.h.
|
inline |
Default constructor, need an instance of a DataHandler.
Definition at line 118 of file STK_DiagGaussianMixtureManager.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 229 of file STK_DiagGaussianMixtureManager.h.
References STK::Clust::Gaussian_s_, STK::Clust::Gaussian_sj_, STK::Clust::Gaussian_sjk_, STK::Clust::Gaussian_sjsk_, STK::Clust::Gaussian_sk_, 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 219 of file STK_DiagGaussianMixtureManager.h.
References STK::DiagGaussianMixtureManager< DataHandler >::createMixtureImpl(), and STK::Clust::stringToMixture().
Referenced by STK::DiagGaussianMixtureManager< 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::DiagGaussianMixtureManager< DataHandler >::getMissingValuesImpl(), STK::DiagGaussianMixtureManager< DataHandler >::getParametersImpl(), and STK::DiagGaussianMixtureManager< 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_DiagGaussianMixtureManager.h.
References STK::Clust::Gaussian_s_, STK::Clust::Gaussian_sj_, STK::Clust::Gaussian_sjk_, STK::Clust::Gaussian_sjsk_, STK::Clust::Gaussian_sk_, STK::DiagGaussianMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< DiagGaussianMixtureManager< 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 156 of file STK_DiagGaussianMixtureManager.h.
References STK::Clust::Gaussian_s_, STK::Clust::Gaussian_sj_, STK::Clust::Gaussian_sjk_, STK::Clust::Gaussian_sjsk_, STK::Clust::Gaussian_sk_, STK::DiagGaussianMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< DiagGaussianMixtureManager< 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 187 of file STK_DiagGaussianMixtureManager.h.
References STK::Clust::Gaussian_s_, STK::Clust::Gaussian_sj_, STK::Clust::Gaussian_sjk_, STK::Clust::Gaussian_sjsk_, STK::Clust::Gaussian_sk_, STK::DiagGaussianMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< DiagGaussianMixtureManager< DataHandler > >::setParameters(), and STK::Clust::unknown_mixture_.