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

Public Member Functions

 CompositeParameter (const CompositeParameter *)
 
 CompositeParameter (Model *, ModelType *, int64_t *)
 
 CompositeParameter (const Parameter *igaussian, const Parameter *ibinary, ModelType *imodelType)
 
void InstantiateBinaryandGaussianParamter (ModelType *, int64_t *)
 
virtual void setModel (Model *iModel)
 setModel , made it virtual so that composite paramter class can override it.
 
virtual void reset ()
 reset to default values
 
virtual CompositeParameterclone () const
 Selector. More...
 
virtual double getPdf (int64_t iSample, int64_t kCluster) const
 
virtual void getAllPdf (double **tabFik, double *tabProportion) const
 
virtual double getPdf (Sample *x, int64_t kCluster) const
 
virtual int64_t getFreeParameter () const
 Selector. More...
 
virtual double getLogLikelihoodOne () const
 get loglikelihood with one cluster
 
virtual void initUSER (Parameter *iParam)
 init user
 
virtual void initForInitRANDOM ()
 initialize attributes before an InitRandom
 
virtual void updateForInitRANDOMorUSER_PARTITION (Sample **tabSampleForInit, bool *tabClusterToInitialze)
 
virtual void initForInitUSER_PARTITION (int64_t &nbInitializedCluster, bool *tabNotInitializedCluster, Partition *initPartition)
 
virtual void MStep ()
 Maximum a posteriori step method. More...
 
virtual void edit ()
 
virtual void edit (std::ofstream &oFile, bool text=false)
 edit
 
virtual void input (std::ifstream &fi)
 input
 
virtual void recopy (Parameter *otherParameter)
 recopie sans faire construction / destruction
 
virtual void updateForCV (Model *originalModel, CVBlock &CVBlock)
 
 operator BinaryParameter * ()
 
 operator GaussianParameter * ()
 
virtual BinaryParametergetBinaryParameter ()
 
virtual GaussianParametergetGaussianParameter ()
 
- 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 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
 
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
 

Member Function Documentation

CompositeParameter * XEM::CompositeParameter::clone ( ) const
virtual

Selector.

Returns
A copy of the model

Implements XEM::Parameter.

int64_t XEM::CompositeParameter::getFreeParameter ( ) const
virtual

Selector.

Returns
The number of free parameters

Implements XEM::Parameter.

double XEM::CompositeParameter::getPdf ( int64_t  iSample,
int64_t  kCluster 
) const
virtual

Return Product of Pdf's of Gaussian and Binary parameters.

Implements XEM::Parameter.

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

Return Product of Pdf's of Gaussian and Binary parameters.

Implements XEM::Parameter.

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

initialize attributes for init USER_PARTITION outputs :

  • nbInitializedCluster
  • tabNotInitializedCluster (array of size _nbCluster)

Implements XEM::Parameter.

void XEM::CompositeParameter::MStep ( )
virtual

Maximum a posteriori step method.

Maximization step method

Implements XEM::Parameter.

XEM::CompositeParameter::operator BinaryParameter * ( )
inline

typecast overloading for BinaryData

XEM::CompositeParameter::operator GaussianParameter * ( )
inline

typecast overloading for XEGaussianData


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