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

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

#include <GaussianGeneralParameter.h>

Inheritance diagram for XEM::GaussianGeneralParameter:
Collaboration diagram for XEM::GaussianGeneralParameter:

Public Member Functions

 GaussianGeneralParameter ()
 Default constructor.
 
 GaussianGeneralParameter (Model *iModel, ModelType *iModelType)
 Constructor.
 
 GaussianGeneralParameter (int64_t iNbCluster, int64_t iPbDimension, ModelType *iModelType, std::string &iFileName)
 
 GaussianGeneralParameter (int64_t iNbCluster, int64_t iPbDimension, ModelType *iModelType, double *proportions, double **means, double ***variances)
 
 GaussianGeneralParameter (const GaussianGeneralParameter *iParameter)
 Constructor (copy)
 
virtual ~GaussianGeneralParameter ()
 Destructor.
 
virtual void reset ()
 reset to default values
 
Parameterclone () const
 Selector. More...
 
void initUSER (Parameter *iParam)
 User initialisation of the parameters of the model.
 
void computeTabSigma ()
 Compute table of sigmas of the samples of each cluster.
 
double flury (double F)
 
double * getTabLambda () const
 
DiagMatrix ** getTabShape () const
 Selector. More...
 
GeneralMatrix ** getTabOrientation () const
 Selector. More...
 
double getLogLikelihoodOne () const
 get loglikelihood with one cluster
 
- Public Member Functions inherited from XEM::GaussianEDDAParameter
 GaussianEDDAParameter ()
 Default constructor.
 
 GaussianEDDAParameter (Model *iModel, ModelType *iModelType)
 Constructor.
 
 GaussianEDDAParameter (int64_t iNbCluster, int64_t iPbDimension, ModelType *iModelType)
 Constructor.
 
 GaussianEDDAParameter (const GaussianEDDAParameter *iParameter)
 Constructor.
 
virtual ~GaussianEDDAParameter ()
 Destructor.
 
virtual bool operator== (const GaussianEDDAParameter &param) const
 Comparison operator.
 
double * getTabInvSqrtDetSigma () const
 Selector. More...
 
Matrix ** getTabInvSigma () const
 Selector. More...
 
Matrix ** getTabSigma () const
 Selector. More...
 
double getPdf (int64_t iSample, int64_t kCluster) const
 
void getAllPdf (double **tabFik, double *tabProportion) const
 
double getPdf (Sample *x, int64_t kCluster) const
 
void updateTabInvSigmaAndDet ()
 
void computeTikUnderflow (int64_t i, double **tabTik)
 compute Tik for xi (i=0 -> _nbSample-1) when underflow
 
void edit ()
 
void edit (std::ofstream &oFile, bool text=false)
 Edit.
 
void recopy (Parameter *otherParameter)
 recopie sans faire construction / destruction
 
void updateForCV (Model *originalModel, CVBlock &CVBlock)
 
void MStep ()
 Maximization step method.
 
void MAPStep ()
 
virtual void input (std::ifstream &fi)
 input
 
virtual void input (double *proportions, double **means, double ***variances)
 
void initForInitRANDOM ()
 initialize attributes before an initRANDOM
 
void initForInitUSER_PARTITION (int64_t &nbInitializedCluster, bool *tabNotInitializedCluster, Partition *initPartition)
 
- 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
 
virtual void computeTabWkW ()
 Compute table of cluster scattering matrices Wk and W.
 
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...
 
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 ()
 
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

void computeTabSigma_L_C ()
 
void computeTabSigma_Lk_Ck ()
 
void computeTabSigma_L_Ck ()
 
void computeTabSigma_L_Dk_A_Dk ()
 
void computeTabSigma_Lk_Dk_A_Dk ()
 
void computeTabSigma_Lk_C ()
 
void computeTabSigma_L_D_Ak_D ()
 
void computeTabSigma_Lk_D_Ak_D ()
 
int64_t getFreeParameter () const
 Selector. More...
 
- 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 Spherical Gaussian Model(s)

Author
F Langrognet

Member Function Documentation

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

Selector.

Returns
A copy of the model

Implements XEM::GaussianEDDAParameter.

Here is the call graph for this function:

double XEM::GaussianGeneralParameter::flury ( double  F)

Flury Algorithm return the value of Flury function

Here is the call graph for this function:

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

Selector.

Returns
The number of free parameters

Implements XEM::GaussianEDDAParameter.

GeneralMatrix ** XEM::GaussianGeneralParameter::getTabOrientation ( ) const
inline

Selector.

Returns
Table of orientation matrix for each cluster

Here is the caller graph for this function:

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

Selector.

Returns
Table of shape matrix for each cluster

Here is the caller graph for this function:


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