36#ifndef STK_POISSONMIXTUREMANAGER_H
37#define STK_POISSONMIXTUREMANAGER_H
39#include "../STK_Clust_Util.h"
40#include "../STK_IMixtureManager.h"
45#define STK_CREATE_MIXTURE(Data, Bridge) \
46 Data* p_data = new Data(idData); \
47 p_handler()->getData(idData, p_data->dataij() ); \
48 registerDataBridge(p_data); \
49 return new Bridge( &(p_data->dataij()), idData, nbCluster);
55template<
class DataHandler>
class PoissonMixtureManager;
62template <
class DataHandler_>
96template<
class DataHandler>
240#undef STK_CREATE_MIXTURE
In this file we define the bridge class between the Poisson mixture models and the composer.
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< PoissonMixtureManager< 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...
A mixture manager is a factory class for injection dependency in the STK++ derived class of the Mixtu...
hidden::MixtureManagerTraits< PoissonMixtureManager >::MissingValues MissingValues
Clust::Mixture getIdModel(String const &idData) const
Utility function allowing to find the idModel from the idData.
PoissonBridge< Clust::Poisson_ljlk_, Data > MixtureBridge_ljlk
~PoissonMixtureManager()
destructor
void getMissingValuesImpl(IMixture *p_mixture, MissingValues &missing) const
get the missing values from an IMixture.
void registerDataBridge(IDataBridge *p_data)
register a data bridge to the IMixtureManager.
hidden::MixtureManagerTraits< PoissonMixtureManager >::Data Data
PoissonMixtureManager(DataHandler const &handler)
Default constructor, need an instance of a DataHandler.
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.
DataHandler const *const p_handler() const
PoissonBridge< Clust::Poisson_ljk_, Data > MixtureBridge_ljk
hidden::MixtureManagerTraits< PoissonMixtureManager >::Type Type
PoissonBridge< Clust::Poisson_lk_, Data > MixtureBridge_lk
hidden::MixtureManagerTraits< PoissonMixtureManager >::DataBridgeType DataBridgeType
void setParametersImpl(IMixture *p_mixture, ArrayXX const ¶m) const
set the parameters to an IMixture.
IMixtureManager< PoissonMixtureManager > Base
hidden::MixtureManagerTraits< PoissonMixtureManager >::MissingIndexes MissingIndexes
void getParametersImpl(IMixture *p_mixture, ArrayXX ¶m) const
get the parameters from an IMixture.
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.
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...
std::vector< std::pair< std::pair< int, int >, Type > > MissingValues
Type of the array storing missing values.
DataBridge< Data > DataBridgeType
class wrapping the data set
std::vector< std::pair< int, int > > MissingIndexes
Type of the array storing missing values indexes.
DataHandlerTraits< DataHandler, Type >::Data Data
type of the data set
DataHandler_ DataHandler
type of data
Main class for the mixture managers traits policy.