1 #ifndef MMSD_StiefelGaussianLaw_H
2 #define MMSD_StiefelGaussianLaw_H
23 SP::MATH_StiefelOptimizer mOptimizer;
24 SP::MMSD_StiefelFunction mFunction;
57 inline static SP::MMSD_StiefelGaussianLaw
New() {
62 inline static SP::MMSD_StiefelGaussianLaw
New(
const int& nIterations,
const double& minEigenValue) {
66 p->setMaxIterationsNumber(nIterations);
67 p->setMinEigenValue(minEigenValue);
79 mOptimizer->setMaxIterationsNumber(n);
84 return mOptimizer->getMaxIterationsNumber();
108 const int& samplesNumber,
void setMaxIterationsNumber(const int &n)
set the max iterations number for the optimizer algorithm
Definition: MMSD_StiefelGaussianLaw.h:78
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_StiefelGaussianLaw.h:107
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 void restore(const MMSD_DoubleFullMatrix &properties)
restore the unstored values after a backup see MMSD_Law::restore()
Definition: MMSD_StiefelGaussianLaw.h:95
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_StiefelGaussianLaw.cpp:24
virtual tString toString() const
turn the class into string
Definition: MMSD_StiefelGaussianLaw.h:157
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
int getMaxIterationsNumber() const
get the max iterations number for the optimizer algorithm
Definition: MMSD_StiefelGaussianLaw.h:83
Definition: MMSD_DoubleVector.h:16
static SP::MMSD_StiefelGaussianLaw New(const int &nIterations, const double &minEigenValue)
create an instance of Stiefel Gaussian law
Definition: MMSD_StiefelGaussianLaw.h:62
virtual void restore(const MMSD_DoubleFullMatrix &properties)
restore the unstored values after a backup
Definition: MMSD_Law.cpp:50
static SP::MMSD_StiefelGaussianLaw New()
create an instance of Stiefel Gaussian law
Definition: MMSD_StiefelGaussianLaw.h:57
Definition: MMSD_IntegerVector.h:15
This class is a Stiefel Gaussian Law.
Definition: MMSD_StiefelGaussianLaw.h:16
#define tString
Definition: types.h:49
virtual ~MMSD_StiefelGaussianLaw(void)
destroy an object.
Definition: MMSD_StiefelGaussianLaw.cpp:20
DEFINE_SPTR(MMSD_StiefelGaussianLaw)
MMSD_StiefelGaussianLaw(void)
create an object
Definition: MMSD_StiefelGaussianLaw.cpp:9
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106