36#ifndef STK_GAMMAMIXTUREMANAGER_H
37#define STK_GAMMAMIXTUREMANAGER_H
39#include "../STK_IMixtureManager.h"
40#include "../STK_Clust_Util.h"
44#define STK_CREATE_MIXTURE(Data, Bridge) \
45 Data* p_data = new Data(idData); \
46 registerDataBridge(p_data); \
47 p_handler()->getData(idData, p_data->dataij() ); \
48 return new Bridge( &(p_data->dataij()), idData, nbCluster);
54template<
class DataHandler>
class GammaMixtureManager;
60template <
class DataHandler_>
93template<
class DataHandler>
348#undef STK_CREATE_MIXTURE
#define STK_CREATE_MIXTURE(Data, Bridge)
In this file we define the bridge classes between the diagonal Gaussian mixtures and the composer.
A mixture manager is a factory class for injection dependency in the STK++ derived class of the Mixtu...
GammaMixtureManager(DataHandler const &handler)
Default constructor, need an instance of a DataHandler.
hidden::MixtureManagerTraits< GammaMixtureManager >::Type Type
IMixture * createMixtureImpl(String const &modelName, String const &idData, int nbCluster)
create a concrete mixture and initialize it.
GammaBridge< Clust::Gamma_a_bk_, Data > MixtureBridge_a_bk
GammaBridge< Clust::Gamma_ajk_bk_, Data > MixtureBridge_ajk_bk
void getParametersImpl(IMixture *p_mixture, ArrayXX ¶m) const
get the parameters from an IMixture.
GammaBridge< Clust::Gamma_ak_bk_, Data > MixtureBridge_ak_bk
Clust::Mixture getIdModel(String const &idData) const
Utility function allowing to find the idModel from the idData.
GammaBridge< Clust::Gamma_ajk_bj_, Data > MixtureBridge_ajk_bj
GammaBridge< Clust::Gamma_aj_bjk_, Data > MixtureBridge_aj_bjk
IMixtureManager< GammaMixtureManager > Base
GammaBridge< Clust::Gamma_ak_b_, Data > MixtureBridge_ak_b
~GammaMixtureManager()
destructor
GammaBridge< Clust::Gamma_a_bjk_, Data > MixtureBridge_a_bjk
hidden::MixtureManagerTraits< GammaMixtureManager >::MissingValues MissingValues
GammaBridge< Clust::Gamma_ajk_bjk_, Data > MixtureBridge_ajk_bjk
GammaBridge< Clust::Gamma_ak_bj_, Data > MixtureBridge_ak_bj
hidden::MixtureManagerTraits< GammaMixtureManager >::MissingIndexes MissingIndexes
void getMissingValuesImpl(IMixture *p_mixture, MissingValues &missing) const
get the missing values from an IMixture.
GammaBridge< Clust::Gamma_ak_bjk_, Data > MixtureBridge_ak_bjk
hidden::MixtureManagerTraits< GammaMixtureManager >::Data Data
hidden::MixtureManagerTraits< GammaMixtureManager >::DataBridgeType DataBridgeType
IMixture * createMixtureImpl(Clust::Mixture idModel, String const &idData, int nbCluster)
create a concrete mixture and initialize it.
GammaBridge< Clust::Gamma_aj_bk_, Data > MixtureBridge_aj_bk
GammaBridge< Clust::Gamma_ajk_b_, Data > MixtureBridge_ajk_b
void setParametersImpl(IMixture *p_mixture, ArrayXX const ¶m) const
set the parameters from an IMixture.
Interface base class for mixture managers.
void getMissingValues(IMixture *p_mixture, MissingValues &missing) const
get the missing values
Clust::Mixture getIdModel(String const &idData) const
Utility function allowing to find the idModel from the idData.
hidden::MixtureManagerTraits< GammaMixtureManager< DataHandler > >::DataHandler DataHandler
void registerDataBridge(IDataBridge *p_data)
register a data bridge to the IMixtureManager.
void setParameters(IMixture *p_mixture, ArrayXX const &data) const
set the parameters from an IMixture.
DataHandler const *const p_handler() const
IDataBridge * getDataBridge(String const &idData) const
Utility lookup function allowing to find a DataBridge from its idData.
void getParameters(IMixture *p_mixture, ArrayXX &data) const
get the parameters from an IMixture.
Interface base class for all the mixture models that will be processed by the composer.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Mixture stringToMixture(String const &type)
Convert a String to a Mixture.
Mixture
list of the mixtures that can be used by the composer
std::basic_string< Char > String
STK fundamental type of a String.
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.
The DataHandlerTraits will give the type of container furnished by the concrete implementations of th...
DataHandlerTraits< DataHandler, Type >::Data Data
type of the data set
std::vector< std::pair< int, int > > MissingIndexes
Type of the array storing missing values indexes.
DataHandler_ DataHandler
type of data
DataBridge< Data > DataBridgeType
class wrapping the data set
std::vector< std::pair< std::pair< int, int >, Type > > MissingValues
Type of the array storing missing values.
Main class for the mixture managers traits policy.