STK++ 0.9.13
STK::ModelParameters< Clust::HDGaussian_AjkBkQkD_ > Struct Reference

Structure encapsulating the parameters of a MixturGaussian_sj model. More...

#include <STK_HDGaussian_AjkBkQkD.h>

Public Member Functions

 ModelParameters (int nbCluster)
 default constructor
 
 ModelParameters (ModelParameters const &param)
 copy constructor.
 
 ~ModelParameters ()
 destructor
 
Real constmean (int k, int j) const
 
Real constsigma (int k, int j) const
 
void resize (Range const &range)
 resize the set of parameter
 

Public Attributes

Array1D< CPointXmean_
 array of size nbCluster with the parameters mean of the variables
 
Array1D< CPointXsigma_
 standard deviation of the variables
 

Detailed Description

Structure encapsulating the parameters of a MixturGaussian_sj model.

Definition at line 64 of file STK_HDGaussian_AjkBkQkD.h.

Constructor & Destructor Documentation

◆ ModelParameters() [1/2]

STK::ModelParameters< Clust::HDGaussian_AjkBkQkD_ >::ModelParameters ( int  nbCluster)
inline

default constructor

Parameters
nbClusterthe number of class of the mixture

Definition at line 73 of file STK_HDGaussian_AjkBkQkD.h.

73: mean_(nbCluster), sigma_(nbCluster) {}
Array1D< CPointX > mean_
array of size nbCluster with the parameters mean of the variables
Array1D< CPointX > sigma_
standard deviation of the variables

◆ ModelParameters() [2/2]

copy constructor.

Parameters
paramthe parameters to copy.

Definition at line 77 of file STK_HDGaussian_AjkBkQkD.h.

78 : mean_(param.mean_), sigma_(param.sigma_)
79 {}

◆ ~ModelParameters()

destructor

Definition at line 81 of file STK_HDGaussian_AjkBkQkD.h.

81{}

Member Function Documentation

◆ mean()

Real const & STK::ModelParameters< Clust::HDGaussian_AjkBkQkD_ >::mean ( int  k,
int  j 
) const
inline
Returns
the mean of the kth cluster and jth variable

Definition at line 83 of file STK_HDGaussian_AjkBkQkD.h.

83{ return mean_[k][j];}

◆ resize()

resize the set of parameter

Definition at line 87 of file STK_HDGaussian_AjkBkQkD.h.

88 {
89 for (int k = mean_.begin(); k< mean_.end(); ++k)
90 { mean_[k].resize(range) =0;
91 sigma_[k].resize(range) = 1.;
92 }
93 }

◆ sigma()

Real const & STK::ModelParameters< Clust::HDGaussian_AjkBkQkD_ >::sigma ( int  k,
int  j 
) const
inline
Returns
the standard deviation of the kth cluster and jth variable

Definition at line 85 of file STK_HDGaussian_AjkBkQkD.h.

85{ return sigma_[k][j];}

Member Data Documentation

◆ mean_

array of size nbCluster with the parameters mean of the variables

Definition at line 67 of file STK_HDGaussian_AjkBkQkD.h.

◆ sigma_

standard deviation of the variables

Definition at line 69 of file STK_HDGaussian_AjkBkQkD.h.


The documentation for this struct was generated from the following file: