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_KernelMixtureManager.h>
Public Member Functions | |
KernelMixtureManager (KernelHandler const &handler) | |
Default constructor, need an instance of a KernelHandler. | |
~KernelMixtureManager () | |
destructor | |
void | setDim (IMixture *p_mixture, Real const &dim) const |
set the dimension of the kernel mixture model | |
template<class Vector > | |
void | setDim (IMixture *p_mixture, ExprBase< Vector > const &dim) const |
set the dimension of the kernel mixture model | |
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 from its string name and initialize it. | |
![]() | |
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.
Definition at line 89 of file STK_KernelMixtureManager.h.
Definition at line 99 of file STK_KernelMixtureManager.h.
Definition at line 96 of file STK_KernelMixtureManager.h.
typedef hidden::MixtureManagerTraits<KernelMixtureManager>::DataBridgeType STK::KernelMixtureManager::DataBridgeType |
Definition at line 97 of file STK_KernelMixtureManager.h.
typedef hidden::MixtureManagerTraits<KernelMixtureManager>::DataHandler STK::KernelMixtureManager::DataHandler |
Definition at line 92 of file STK_KernelMixtureManager.h.
Definition at line 102 of file STK_KernelMixtureManager.h.
Definition at line 101 of file STK_KernelMixtureManager.h.
typedef hidden::MixtureManagerTraits<KernelMixtureManager>::MissingIndexes STK::KernelMixtureManager::MissingIndexes |
Definition at line 94 of file STK_KernelMixtureManager.h.
typedef hidden::MixtureManagerTraits<KernelMixtureManager>::MissingValues STK::KernelMixtureManager::MissingValues |
Definition at line 95 of file STK_KernelMixtureManager.h.
Definition at line 93 of file STK_KernelMixtureManager.h.
STK::KernelMixtureManager::KernelMixtureManager | ( | KernelHandler const & | handler | ) |
Default constructor, need an instance of a KernelHandler.
Definition at line 42 of file STK_KernelMixtureManager.cpp.
STK::KernelMixtureManager::~KernelMixtureManager | ( | ) |
|
private |
create a concrete mixture and initialize it.
idModel,idData | Id of the model and the data |
nbCluster | number of cluster of the model |
Definition at line 124 of file STK_KernelMixtureManager.cpp.
References STK::Clust::Kmm_s_, STK::Clust::Kmm_sk_, and STK::IMixtureManager< KernelMixtureManager >::p_handler().
IMixture * STK::KernelMixtureManager::createMixtureImpl | ( | String const & | modelName, |
String const & | idData, | ||
int | nbCluster | ||
) |
create a concrete mixture from its string name and initialize it.
modelName | a valid model name |
idData | Id of the data |
nbCluster | number of cluster of the model |
Definition at line 111 of file STK_KernelMixtureManager.cpp.
References _T, createMixtureImpl(), stk_cout, and STK::Clust::stringToMixture().
Referenced by createMixtureImpl().
get the parameters from an IMixture.
p_mixture | pointer on the mixture |
param | the array to return with the parameters |
Definition at line 70 of file STK_KernelMixtureManager.cpp.
References STK::IMixtureManager< KernelMixtureManager >::getIdModel(), STK::IMixtureManager< KernelMixtureManager >::getParameters(), STK::Clust::Kmm_s_, and STK::Clust::Kmm_sk_.
void STK::KernelMixtureManager::setDim | ( | IMixture * | p_mixture, |
ExprBase< Vector > const & | dim | ||
) | const |
set the dimension of the kernel mixture model
Definition at line 142 of file STK_KernelMixtureManager.h.
References STK::IMixtureManager< KernelMixtureManager >::getIdModel(), STK::Clust::Kmm_s_, STK::Clust::Kmm_sk_, setDim(), and STK_STATIC_ASSERT_ONE_DIMENSION_ONLY.
set the dimension of the kernel mixture model
Definition at line 47 of file STK_KernelMixtureManager.cpp.
References STK::IMixtureManager< KernelMixtureManager >::getIdModel(), STK::Clust::Kmm_s_, STK::Clust::Kmm_sk_, and setDim().
void STK::KernelMixtureManager::setParametersImpl | ( | IMixture * | p_mixture, |
ArrayXX const & | param | ||
) | const |
set the parameters from an IMixture.
p_mixture | pointer on the mixture |
param | the array with the parameters to set |
Definition at line 92 of file STK_KernelMixtureManager.cpp.
References STK::IMixtureManager< KernelMixtureManager >::getIdModel(), STK::Clust::Kmm_s_, STK::Clust::Kmm_sk_, and STK::IMixtureManager< KernelMixtureManager >::setParameters().