36#ifndef STK_MIXTURECOMPOSER_H
37#define STK_MIXTURECOMPOSER_H
162 virtual void pStep();
In this file we define the abstract base class for mixture models.
Base class for Mixture (composed) model.
std::vector< IMixture * > v_mixtures_
vector of pointers to the mixtures components
specialization of the composer for the fixed proportion case.
virtual ~MixtureComposerFixedProp()
destructor
virtual MixtureComposerFixedProp * clone() const
Create a clone of the current model, with mixtures parameters preserved.
virtual void pStep()
overloading of the computePropotions() method.
virtual MixtureComposerFixedProp * create() const
Create a composer, but reinitialize the mixtures parameters.
Main class for handling composed mixture models.
Real meanlnLikelihood_
averaged lnLikelihood values.
virtual MixtureComposer * create() const
Create a composer, but reinitialize the mixtures parameters.
void createComposer(std::vector< IMixture * > const &v_mixtures_)
Create the composer using existing data handler and mixtures.
virtual MixtureComposer * clone() const
Create a clone of the current model, with mixtures parameters preserved.
virtual ~MixtureComposer()
The registered mixtures will be deleted there.
virtual void paramUpdateStep()
Compute the proportions and the model parameters given the current tik mixture parameters.
std::vector< IMixture * >::iterator MixtIterator
virtual void releaseIntermediateResults()
This step can be used to signal to the mixtures that they must release the stored results.
virtual void samplingStep()
Simulation of all the latent variables and/or missing data excluding class labels.
virtual void storeIntermediateResults(int iteration)
This step can be used to signal to the mixtures that they must store results.
virtual void finalizeStep()
This step can be used by developer to finalize any thing.
virtual void randomInit()
initialize randomly the parameters of the components of the model
virtual void writeParameters(ostream &os) const
write the parameters of the model in the stream os.
virtual Real lnComponentProbability(int i, int k) const
virtual void setParametersStep()
Utility method allowing to signal to a mixture to set its parameters.
std::vector< IMixture * >::const_iterator ConstMixtIterator
virtual void imputationStep()
Impute the missing values.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
double Real
STK fundamental type of Real values.
std::basic_ostream< Char > ostream
ostream for Char
The namespace STK is the main domain space of the Statistical ToolKit project.