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

#include <BinaryEParameter.h>

Inheritance diagram for XEM::BinaryEParameter:
Collaboration diagram for XEM::BinaryEParameter:

Public Member Functions

 BinaryEParameter ()
 Default constructor.
 
 BinaryEParameter (Model *iModel, ModelType *iModelType, int64_t *tabNbModality)
 Constructor.
 
 BinaryEParameter (const BinaryEParameter *iParameter)
 Constructor.
 
 ~BinaryEParameter ()
 Destructor.
 
virtual bool operator== (const BinaryEParameter &param) const
 Comparison operator.
 
virtual void reset ()
 reset to default values
 
Parameterclone () const
 clone
 
double getScatter () const
 selector : return scatter value
 
int64_t getFreeParameter () const
 getFreeParameter
 
double getPdf (int64_t iSample, int64_t kCluster) const
 Compute probability density. More...
 
long double getLogPdf (int64_t iSample, int64_t kCluster) const
 Compute log probability density. More...
 
double getPdf (Sample *x, int64_t kCluster) const
 
double getLogLikelihoodOne () const
 getlogLikelihoodOne (one cluster)
 
void computeScatter ()
 Compute scatter(s)
 
void computeRandomScatter ()
 Compute random scatter(s)
 
void recopyScatter (Parameter *iParam)
 recopy scatter from param (used for init : USER)
 
void createScatter (double ***scatter)
 create Scatter from "Binary Parameter Ekjh"
 
void editScatter (int64_t k)
 editScatter (for debug)
 
void editScatter (std::ofstream &oFile, int64_t k, bool text=false)
 editScatter
 
void inputScatter (std::ifstream &fi)
 
void inputScatter (double ***scatters)
 
double *** scatterToArray () const
 
- Public Member Functions inherited from XEM::BinaryParameter
 BinaryParameter ()
 Default constructor.
 
 BinaryParameter (Model *iModel, ModelType *iModelType, int64_t *tabNbModality)
 Constructor.
 
 BinaryParameter (int64_t iNbCluster, int64_t iPbDimension, ModelType *iModelType, int64_t *tabNbModality)
 
 BinaryParameter (const BinaryParameter *iParameter)
 Constructor.
 
virtual ~BinaryParameter ()
 Destructor.
 
virtual bool operator== (const BinaryParameter &param) const
 Comparison operator.
 
ParametercreateParameter (Model *iModel, int64_t i0, int64_t ki0)
 create the same parameter than this but after updating because without xi0
 
int64_t ** getTabCenter () const
 get TabCenter
 
int64_t * getTabNbModality () const
 get _tabNbModality
 
int64_t getTotalNbModality () const
 get total number of modality
 
void getAllPdf (double **tabFik, double *tabProportion) const
 
virtual void computeTikUnderflow (int64_t i, double **tabTik)
 compute Tik for xi (i=0 -> _nbSample-1) when underflow
 
void computeTabCenter ()
 Compute table of centers of the samples for each cluster.
 
void initUSER (Parameter *iParam)
 init user
 
void updateForInitRANDOMorUSER_PARTITION (Sample **tabSampleForInit, bool *tabClusterToInitialize)
 updateForInitRANDOMorUSER_PARTITION
 
void initForInitRANDOM ()
 initialize attributes before an InitRandom
 
void initForInitUSER_PARTITION (int64_t &nbInitializedCluster, bool *tabNotInitializedCluster, Partition *initPartition)
 
void computeTabCenterInitUSER_PARTITION (int64_t &nbInitializedCluster, bool *tabNotInitializedCluster, Partition *initPartition)
 
void MAPStep ()
 Maximum a posteriori step method.
 
void MStep ()
 Expectation step method. More...
 
void edit ()
 
void edit (std::ofstream &oFile, bool text=false)
 Edit.
 
void input (std::ifstream &fi)
 input
 
void input (double *proportions, double **centers, double ***scatters)
 
void recopy (Parameter *otherParameter)
 recopie sans faire construction / destruction
 
void updateForCV (Model *originalModel, CVBlock &CVBlock)
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from XEM::BinaryParameter
void getTabCenterIfOneCluster (int64_t *tabCenter, double *tabNbSampleInMajorModality, double **tabNbSamplePerModality=NULL) const
 compute TabCenter if there is only One Cluster
 

Detailed Description

Author
F LANGROGNET

Member Function Documentation

long double XEM::BinaryEParameter::getLogPdf ( int64_t  iSample,
int64_t  kCluster 
) const
virtual

Compute log probability density.

Parameters
iSampleProbability for sample iSample
kClusterProbability in class kCluster

Implements XEM::BinaryParameter.

Here is the call graph for this function:

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

Compute probability density.

Parameters
iSampleProbability for sample iSample
kClusterProbability in class kCluster

Implements XEM::BinaryParameter.

Here is the call graph for this function:

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

Compute probability density function for x vector and kCluster th cluster

Implements XEM::BinaryParameter.

Here is the call graph for this function:


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