36#ifndef STK_DIAGGAUSSIANMIXTUREMANAGER_H
37#define STK_DIAGGAUSSIANMIXTUREMANAGER_H
39#include "../STK_Clust_Util.h"
40#include "../STK_IMixtureManager.h"
44#define STK_CREATE_MIXTURE(Data, Bridge) \
45 Data* p_data = new Data(idData); \
46 p_handler()->getData(idData, p_data->dataij() ); \
47 registerDataBridge(p_data); \
48 return new Bridge( &(p_data->dataij()), idData, nbCluster);
54template<
class DataHandler>
class DiagGaussianMixtureManager;
60template <
class DataHandler_>
94template<
class DataHandler>
259#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 IMixt...
~DiagGaussianMixtureManager()
destructor
void setParametersImpl(IMixture *p_mixture, ArrayXX const ¶m) const
set the parameters from an IMixture.
Clust::Mixture getIdModel(String const &idData) const
Utility function allowing to find the idModel from the idData.
DiagGaussianBridge< Clust::Gaussian_sj_, Data > MixtureBridge_sj
void getMissingValuesImpl(IMixture *p_mixture, MissingValues &missing) const
get the missing values from an IMixture.
hidden::MixtureManagerTraits< DiagGaussianMixtureManager >::Data Data
hidden::MixtureManagerTraits< DiagGaussianMixtureManager >::MissingValues MissingValues
DiagGaussianMixtureManager(DataHandler const &handler)
Default constructor, need an instance of a DataHandler.
DiagGaussianBridge< Clust::Gaussian_sk_, Data > MixtureBridge_sk
IMixtureManager< DiagGaussianMixtureManager > Base
DiagGaussianBridge< Clust::Gaussian_s_, Data > MixtureBridge_s
hidden::MixtureManagerTraits< DiagGaussianMixtureManager >::DataBridgeType DataBridgeType
IMixture * createMixtureImpl(Clust::Mixture idModel, String const &idData, int nbCluster)
create a concrete mixture and initialize it.
IMixture * createMixtureImpl(String const &modelName, String const &idData, int nbCluster)
create a concrete mixture and initialize it.
hidden::MixtureManagerTraits< DiagGaussianMixtureManager >::MissingIndexes MissingIndexes
DiagGaussianBridge< Clust::Gaussian_sjsk_, Data > MixtureBridge_sjsk
hidden::MixtureManagerTraits< DiagGaussianMixtureManager >::Type Type
DiagGaussianBridge< Clust::Gaussian_sjk_, Data > MixtureBridge_sjk
void getParametersImpl(IMixture *p_mixture, ArrayXX ¶m) const
get 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< DiagGaussianMixtureManager< 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...
DataBridge< Data > DataBridgeType
class wrapping the data set
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
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.