37#ifndef STK_IMIXTUREMODEL_H
38#define STK_IMIXTUREMODEL_H
44#ifdef STK_MIXTURE_DEBUG
92template<
class Derived>
98 typedef typename Array::Type
Type;
146 param_.setParametersStep();
165 template<
class Weights>
184 this->setNbVariable(
p_dataij_->sizeCols());
This file define methods for displaying Arrays and Expressions.
In this file we define the interface base class for mixture models.
In this file we define the Categorical distribution.
In this file we define the constant and utilities methods used in the project Model.
Base class for all Mixture model.
void setNbSample(int nbSample)
Set the number of sample of the model.
Main interface class for mixture models.
IMixtureModel(IMixtureModel const &model)
copy constructor.
void setParametersStep()
set the parameters stored in stat_proba_ and release stat_proba_.
~IMixtureModel()
destructor
Type sample(int i, int j, Weights const &tk) const
void finalizeStep()
This function will be called once the model is estimated.
Clust::MixtureTraits< Derived >::Array Array
IMixtureModel * create() const
create pattern.
bool initializeStep()
This function will be called once the model is created and data is set.
void setData(Array const &data)
Set the data set.
Clust::MixtureTraits< Derived >::Parameters Parameters
void initializeModelImpl()
default implementation of initializeModelImpl (do nothing)
IMixtureModel(int nbCluster)
Default constructor.
Array const * p_data() const
Parameters param_
parameters of the derived mixture model
void finalizeStepImpl()
default implementation of finalizeStepImpl (do nothing)
bool initializeStepImpl()
default implementation of initializeStepImpl (return true)
Array const * p_dataij_
pointer on the data set
void initializeModel()
Initialize the model before its first use.
Interface base class for all classes implementing the curious recursive template paradigm.
Derived & asDerived()
static cast : return a reference of this with a cast to the derived class.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
The namespace STK is the main domain space of the Statistical ToolKit project.
Main class for the mixtures traits policy.
struct storing the parameters of the mixture.