STK++ 0.9.13
|
A mixture manager is a factory class for injection dependency in the STK++ derived class of the IMixtureComposer interface class. More...
#include <STK_CategoricalMixtureManager.h>
Public Member Functions | |
CategoricalMixtureManager (DataHandler const &handler) | |
Default constructor, need an instance of a DataHandler. | |
~CategoricalMixtureManager () | |
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. | |
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 IMixtureComposer interface 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 93 of file STK_CategoricalMixtureManager.h.
typedef IMixtureManager<CategoricalMixtureManager> STK::CategoricalMixtureManager< DataHandler >::Base |
Definition at line 102 of file STK_CategoricalMixtureManager.h.
typedef hidden::MixtureManagerTraits<CategoricalMixtureManager>::Data STK::CategoricalMixtureManager< DataHandler >::Data |
Definition at line 99 of file STK_CategoricalMixtureManager.h.
typedef hidden::MixtureManagerTraits<CategoricalMixtureManager>::DataBridgeType STK::CategoricalMixtureManager< DataHandler >::DataBridgeType |
Definition at line 100 of file STK_CategoricalMixtureManager.h.
typedef hidden::MixtureManagerTraits<CategoricalMixtureManager>::MissingIndexes STK::CategoricalMixtureManager< DataHandler >::MissingIndexes |
Definition at line 97 of file STK_CategoricalMixtureManager.h.
typedef hidden::MixtureManagerTraits<CategoricalMixtureManager>::MissingValues STK::CategoricalMixtureManager< DataHandler >::MissingValues |
Definition at line 98 of file STK_CategoricalMixtureManager.h.
typedef CategoricalBridge<Clust::Categorical_pjk_, Data> STK::CategoricalMixtureManager< DataHandler >::MixtureBridge_pjk |
Definition at line 109 of file STK_CategoricalMixtureManager.h.
typedef CategoricalBridge<Clust::Categorical_pk_, Data> STK::CategoricalMixtureManager< DataHandler >::MixtureBridge_pk |
Definition at line 110 of file STK_CategoricalMixtureManager.h.
typedef hidden::MixtureManagerTraits<CategoricalMixtureManager>::Type STK::CategoricalMixtureManager< DataHandler >::Type |
Definition at line 96 of file STK_CategoricalMixtureManager.h.
|
inline |
Default constructor, need an instance of a DataHandler.
Definition at line 113 of file STK_CategoricalMixtureManager.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 197 of file STK_CategoricalMixtureManager.h.
References STK::Clust::Categorical_pjk_, STK::Clust::Categorical_pk_, 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 185 of file STK_CategoricalMixtureManager.h.
References STK::CategoricalMixtureManager< DataHandler >::createMixtureImpl(), and STK::Clust::stringToMixture().
Referenced by STK::CategoricalMixtureManager< 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::CategoricalMixtureManager< DataHandler >::getMissingValuesImpl(), STK::CategoricalMixtureManager< DataHandler >::getParametersImpl(), and STK::CategoricalMixtureManager< 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 121 of file STK_CategoricalMixtureManager.h.
References STK::Clust::Categorical_pjk_, STK::Clust::Categorical_pk_, STK::CategoricalMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< CategoricalMixtureManager< 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 142 of file STK_CategoricalMixtureManager.h.
References STK::Clust::Categorical_pjk_, STK::Clust::Categorical_pk_, STK::CategoricalMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< CategoricalMixtureManager< 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 to an IMixture.
p_mixture | pointer on the mixture |
param | the array with the parameters to set |
Definition at line 163 of file STK_CategoricalMixtureManager.h.
References STK::Clust::Categorical_pjk_, STK::Clust::Categorical_pk_, STK::CategoricalMixtureManager< DataHandler >::getIdModel(), STK::IMixtureManager< CategoricalMixtureManager< DataHandler > >::setParameters(), and STK::Clust::unknown_mixture_.