mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
XEM::GaussianHDDAParameter Class Reference

Derived class of XEMGaussianParameter for HDDA Gaussian Model(s) More...

#include <GaussianHDDAParameter.h>

Inheritance diagram for XEM::GaussianHDDAParameter:
Collaboration diagram for XEM::GaussianHDDAParameter:

Public Member Functions

 GaussianHDDAParameter ()
 Default constructor.
 
 GaussianHDDAParameter (Model *iModel, ModelType *iModelType)
 Constructor.
 
 GaussianHDDAParameter (int64_t iNbCluster, int64_t iPbDimension, ModelType *iModelType, std::string &iFileName)
 Constructor.
 
 GaussianHDDAParameter (const GaussianHDDAParameter *iParameter)
 Constructor.
 
virtual ~GaussianHDDAParameter ()
 Destructor.
 
virtual void reset ()
 reset to default values
 
Parameterclone () const
 Selector. More...
 
DiagMatrix ** getTabShape () const
 Selector. More...
 
GeneralMatrix ** getTabQ () const
 Selector. More...
 
double ** getTabA () const
 Selector. More...
 
double * getTabB () const
 Selector. More...
 
int64_t * getTabD () const
 Selector. More...
 
SymmetricMatrix ** getTabGammak () const
 
double ** getGamma () const
 
void MStep ()
 Maximization step method.
 
virtual void initForInitRANDOM ()
 initialize attributes before an InitRandom
 
void initForInitUSER_PARTITION (int64_t &nbInitializedCluster, bool *tabNotInitializedCluster, Partition *initPartition)
 
virtual void initUSER (Parameter *iParam)
 User initialisation of the parameters of the model.
 
double getLogLikelihoodOne () const
 get loglikelihood with one cluster
 
void edit ()
 
void edit (std::ofstream &oFile, bool text=false)
 Edit.
 
void recopy (Parameter *otherParameter)
 recopie sans faire construction / destruction
 
double getPdf (int64_t iSample, int64_t kCluster) const
 Compute table of sigmas of the samples for each cluster.
 
void getAllPdf (double **tabFik, double *tabProportion) const
 
double getPdf (Sample *x, int64_t kCluster) const
 
double * computeLoglikelihoodK (double **K)
 
void input (std::ifstream &fi)
 input
 
- Public Member Functions inherited from XEM::GaussianParameter
 GaussianParameter ()
 Default constructor.
 
 GaussianParameter (Model *iModel, ModelType *iModelType)
 Constructor.
 
 GaussianParameter (int64_t iNbCluster, int64_t iPbDimension, ModelType *iModelType)
 Constructor.
 
 GaussianParameter (const GaussianParameter *iParameter)
 Constructor.
 
virtual ~GaussianParameter ()
 Destructor.
 
virtual bool operator== (const GaussianParameter &param) const
 Comparison operator.
 
double ** getTabMean () const
 get TabMean
 
void computeGlobalDiagDataVariance (DiagMatrix *matrixDiagDataVar)
 computeDiagGlobalDataVariance
 
int64_t computeClassAssigment (int64_t idxSample)
 compute label of idxSample
 
void computeTabMean ()
 Compute table of means of the samples for each cluster.
 
void computeTabMeanInitUSER_PARTITION (int64_t &nbInitializedCluster, bool *tabNotInitializedCluster, Partition *initPartition)
 
void MAPStep ()
 Maximum a posteriori step method.
 
Matrix ** getTabWk () const
 get TabSigma More...
 
MatrixgetW () const
 Selector. More...
 
virtual void updateForCV (Model *originalModel, CVBlock &CVBlock)
 
void updateForInitRANDOMorUSER_PARTITION (Sample **tabSampleForInit, bool *tabClusterToInitialize)
 
- Public Member Functions inherited from XEM::Parameter
 Parameter ()
 Default constructor.
 
 Parameter (int64_t iNbCluster, int64_t iPbDimension, ModelType *iModelType)
 Constructor.
 
 Parameter (Model *iModel, ModelType *iModelType)
 Constructor.
 
 Parameter (const Parameter *iParameter)
 Constructor ccopy)
 
virtual ~Parameter ()
 Destructor.
 
virtual GaussianParametergetGaussianParameter ()
 
virtual BinaryParametergetBinaryParameter ()
 
virtual bool operator== (const Parameter &param) const
 Comparison operator.
 
void computeTabProportion ()
 
virtual void computeTikUnderflow (int64_t i, double **tabTik)
 compute Tik for xi (i=0 -> _nbSample-1) when underflow
 
int64_t generateRandomIndex (bool *tabIndividualCanBeUsedForInitRandom, double *weight, double totalWeight)
 
double * getTabProportion () const
 get TabProportion
 
int64_t getNbCluster () const
 get nbCluster
 
int64_t getPbDimension () const
 get pbDimension
 
bool getFreeProportion () const
 getFreeProportion
 
ModelgetModel () const
 getModel
 
ModelTypegetModelType () const
 getModelType
 
virtual void setModel (Model *iModel)
 setModel , made it virtual so that composite paramter class can override it.
 
void setModelType (ModelType *iModeltype)
 set modeltype
 
const std::string & getFilename () const
 getFilename
 
void setFilename (const std::string &filename)
 setFilename
 
FormatNumeric::FormatNumericFile getFormat () const
 get Format
 
void setFormat (const FormatNumeric::FormatNumericFile format)
 set FormatNumeric
 

Protected Member Functions

int64_t getFreeParameter () const
 Selector. More...
 
void computeTabWkW ()
 Compute table of cluster scattering matrices Wk and W.
 
double ** computeCost (GeneralMatrix **tabQ) const
 compute function of cost for each tabQk_k
 
void computeAkjBkQk ()
 compute parameters for the model AkjBkQk
 
void computeAkjBQk ()
 compute parameters for the model AkjBQk
 
void computeAjBkQk ()
 compute parameters for the model AjBkQk
 
void computeAjBQk ()
 compute parameters for the model AjBQk
 
void computeAkBkQk ()
 compute parameters for the model AkBkQk
 
void computeAkBQk ()
 compute parameters for the model AkBQk
 
void computeTabDk ()
 compute the intrinsic dimension when non given
 
- Protected Member Functions inherited from XEM::GaussianParameter
void initFreeProportion (ModelType *iModelType)
 
void computeMeanOne (double *Mean, double *weight, double **y_Store, int64_t nbSample, double totalWeight) const
 
void putIdentityInDiagonalMatrix (double *mat_store)
 
void putIdentityInMatrix (double *mat_store)
 
void initDiagonalMatrixToZero (double *A_store)
 
double determinantDiag (double *mat_store, Exception &errorType)
 

Detailed Description

Derived class of XEMGaussianParameter for HDDA Gaussian Model(s)

Author
F Langrognet

Member Function Documentation

Parameter * XEM::GaussianHDDAParameter::clone ( ) const
virtual

Selector.

Returns
A copy of the model

Implements XEM::GaussianParameter.

Here is the call graph for this function:

int64_t XEM::GaussianHDDAParameter::getFreeParameter ( ) const
protectedvirtual

Selector.

Returns
The number of free parameters

Implements XEM::Parameter.

double XEM::GaussianHDDAParameter::getPdf ( Sample x,
int64_t  kCluster 
) const
virtual

Compute normal probability density function for x vector and kCluster th cluster

Implements XEM::GaussianParameter.

Here is the call graph for this function:

double ** XEM::GaussianHDDAParameter::getTabA ( ) const
inline

Selector.

Returns
Control the shape of the density in the subspace Ei

Here is the caller graph for this function:

double * XEM::GaussianHDDAParameter::getTabB ( ) const
inline

Selector.

Returns
Control the shape of the density in the subspace orthogonal to Ei

Here is the caller graph for this function:

int64_t * XEM::GaussianHDDAParameter::getTabD ( ) const
inline

Selector.

Returns
Dimension of each subspace

Here is the caller graph for this function:

GeneralMatrix ** XEM::GaussianHDDAParameter::getTabQ ( ) const
inline

Selector.

Returns
Table of orientation matrix for each cluster

Here is the caller graph for this function:

DiagMatrix ** XEM::GaussianHDDAParameter::getTabShape ( ) const
inline

Selector.

Returns
Table of shape matrix for each cluster

Here is the caller graph for this function:

void XEM::GaussianHDDAParameter::initForInitUSER_PARTITION ( int64_t &  nbInitializedCluster,
bool *  tabNotInitializedCluster,
Partition initPartition 
)
virtual

initialize attributes for init USER_PARTITION outputs :

  • nbInitializedCluster
  • tabNotInitializedCluster (array of size _nbCluster)

Implements XEM::Parameter.

Here is the call graph for this function:


The documentation for this class was generated from the following files: