1 #ifndef MMSD_FluryGautschiGaussianLaw_H
2 #define MMSD_FluryGautschiGaussianLaw_H
57 inline static SP::MMSD_FluryGautschiGaussianLaw
New() {
62 inline static SP::MMSD_FluryGautschiGaussianLaw
New(
const int& nFGIterations,
const double& minEigenValue) {
66 p->setMaxIterationsNumber(nFGIterations);
67 p->setMinEigenValue(minEigenValue);
79 mMaxIterationsNumber=n;
115 const int& samplesNumber,
176 const int& maxIterationsNumber);
238 static void computeGStepForFluryGautschiAlgorithm(
const int& C0,
const int& C1,
304 updateCovarianceDecompositionMatrix(Y,Diag,mean,
306 mCombinations,mBestMatrix,mMatrix,mYM,mQ,
getWork(),
virtual void initialize(const int &clusterIndex, const int &samplesNumber, const MMSD_IntegerVector &clustersIndex, const MMSD_DoubleFullMatrix &Y)
initialization of the parameters opf the law
Definition: MMSD_FluryGautschiGaussianLaw.h:114
static SP::MMSD_FluryGautschiGaussianLaw New()
create an instance of gaussian law
Definition: MMSD_FluryGautschiGaussianLaw.h:57
MMSD_DoubleVector & getWork()
get work vector
Definition: MMSD_GaussianLaw.h:72
int getMaxIterationsNumber() const
get the max iterations number for the Fleury Gautschi algorithm
Definition: MMSD_FluryGautschiGaussianLaw.h:83
This class describes the FullMatrix class.
Definition: MMSD_DoubleFullMatrix.h:17
virtual tString toString() const
turn the class into string
Definition: MMSD_GaussianLaw.h:172
virtual ~MMSD_FluryGautschiGaussianLaw(void)
destroy an object.
Definition: MMSD_FluryGautschiGaussianLaw.cpp:15
This class is a Gaussian Law inherits from MMSD_Law.
Definition: MMSD_GaussianLaw.h:21
virtual void initialize(const int &clusterIndex, const int &samplesNumber, const MMSD_IntegerVector &clustersIndex, const MMSD_DoubleFullMatrix &properties)
initialization of the parameters opf the law
Definition: MMSD_Law.cpp:59
MMSD_FluryGautschiGaussianLaw(void)
create an object
Definition: MMSD_FluryGautschiGaussianLaw.cpp:9
int computeCombinations(const int &p, const int &n)
compute the combinaison of P elements among N It creates a matrix of size (C_N^P x P) the column i is...
Definition: MMSD_IntegerFullMatrix.cpp:20
virtual void updateCovarianceDecompositionMatrix(const MMSD_DoubleFullMatrix &Y, const MMSD_DoubleVector &Diag, const MMSD_DoubleVector &mean, const MMSD_DoubleFullMatrix &W, const MMSD_DoubleVector &probs, MMSD_DoubleFullMatrix &P, MMSD_DoubleFullMatrix &YP)
pdate the decomposition matrix of the covariance parameters
Definition: MMSD_FluryGautschiGaussianLaw.h:296
int mMaxIterationsNumber
Definition: MMSD_FluryGautschiGaussianLaw.h:21
Definition: MMSD_DoubleVector.h:16
virtual void restore(const MMSD_DoubleFullMatrix &properties)
restore the unstored values after a backup
Definition: MMSD_Law.cpp:50
Definition: MMSD_IntegerVector.h:15
This class describes the FullMatrix class.
Definition: MMSD_IntegerFullMatrix.h:17
void setMaxIterationsNumber(const int &n)
set the max iterations number for the Fleury Gautschi algorithm By default set to 6 ...
Definition: MMSD_FluryGautschiGaussianLaw.h:78
DEFINE_SPTR(MMSD_FluryGautschiGaussianLaw)
#define tString
Definition: types.h:49
virtual void restore(const MMSD_DoubleFullMatrix &Y)
restore the unstored values after a backup
Definition: MMSD_FluryGautschiGaussianLaw.h:96
virtual tLVectorIndex getColumnsNumber() const
get the columns number of the matrix from view
Definition: LAP_DoubleFullGeneralMatrix.h:371
virtual tString toString() const
turn the class into string
Definition: MMSD_FluryGautschiGaussianLaw.h:318
This class is aFlury Gautschi Gaussian Law.
Definition: MMSD_FluryGautschiGaussianLaw.h:16
static SP::MMSD_FluryGautschiGaussianLaw New(const int &nFGIterations, const double &minEigenValue)
create an instance of gaussian law
Definition: MMSD_FluryGautschiGaussianLaw.h:62
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106