STK++ 0.9.13
|
Interface base class for all Statistical Models. More...
#include <STK_IStatModelBase.h>
Public Member Functions | |
int | nbSample () const |
Real | lnNbSample () const |
int | nbVariable () const |
Real | lnLikelihood () const |
Real | likelihood () const |
int | nbFreeParameter () const |
Real | computeBIC () const |
Real | computeAIC () const |
Real | computeML () const |
Protected Member Functions | |
IStatModelBase () | |
Default constructor. | |
IStatModelBase (int nbSample) | |
Constructor with specified dimension. | |
IStatModelBase (int nbSample, int nbVariable) | |
Constructor with specified dimension. | |
IStatModelBase (IStatModelBase const &model) | |
Copy constructor. | |
~IStatModelBase () | |
destructor | |
void | setNbFreeParameter (int const &nbFreeParameter) |
set the number of free parameters of the model | |
void | setNbSample (int const &nbSample) |
set the number of samples of the model | |
void | setNbVariable (int const &nbVariable) |
set the number of variables of the model | |
void | setLnLikelihood (Real const &lnLikelihood) |
set the log-likelihood of the model | |
void | initialize (int nbSample, int nbVariable) |
set the dimensions of the parameters of the model | |
Private Attributes | |
int | nbSample_ |
total available samples | |
int | nbVariable_ |
total available variables | |
Real | lnLikelihood_ |
likelihood of the samples | |
int | nbFreeParameter_ |
number of free parameters of the model | |
Interface base class for all Statistical Models.
This Interface can be used for any kind of data set. However, it is not allowed to instantiate directly this class. For a concrete class, use a derived class of the IStatMode class.
When using a model selection criterion like AIC or BIC, this class is self-sufficient.
Definition at line 55 of file STK_IStatModelBase.h.
|
inlineprotected |
Default constructor.
Definition at line 59 of file STK_IStatModelBase.h.
References initialize().
|
inlineprotected |
Constructor with specified dimension.
nbSample | Number of samples of the model |
Definition at line 63 of file STK_IStatModelBase.h.
References initialize(), and nbSample().
Constructor with specified dimension.
nbSample,nbVariable | Number of samples and variables of the model |
Definition at line 68 of file STK_IStatModelBase.h.
References initialize(), nbSample(), and nbVariable().
|
inlineprotected |
Copy constructor.
model | the model to copy |
Definition at line 73 of file STK_IStatModelBase.h.
|
inlineprotected |
|
inline |
Definition at line 101 of file STK_IStatModelBase.h.
References lnLikelihood(), and nbFreeParameter().
Referenced by STK::AICMixtureCriterion::run(), and STK::AICCriterion::run().
|
inline |
Definition at line 98 of file STK_IStatModelBase.h.
References lnLikelihood(), lnNbSample(), and nbFreeParameter().
Referenced by STK::BICMixtureCriterion::run(), and STK::BICCriterion::run().
|
inline |
Definition at line 104 of file STK_IStatModelBase.h.
References lnLikelihood().
set the dimensions of the parameters of the model
nbSample | number of samples of the model |
nbVariable | number of variables of the model |
Definition at line 132 of file STK_IStatModelBase.h.
References lnLikelihood_, nbFreeParameter_, nbSample(), nbSample_, nbVariable(), and nbVariable_.
Referenced by STK::MixtureLearner::createLearner(), STK::IMultiStatModel< Derived >::IMultiStatModel(), STK::IMultiStatModel< Derived >::IMultiStatModel(), STK::IStatModel< Derived >::IStatModel(), IStatModelBase(), IStatModelBase(), IStatModelBase(), STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >::IUnivStatModel(), STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >::IUnivStatModel(), STK::IMultiStatModel< Derived >::update(), and STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >::update().
|
inline |
|
inline |
Definition at line 91 of file STK_IStatModelBase.h.
References lnLikelihood_.
Referenced by computeAIC(), computeBIC(), STK::IMixtureStatModel::computeICL(), computeML(), STK::EMAlgo::run(), STK::CEMAlgo::run(), STK::SEMAlgo::run(), STK::SemiSEMAlgo::run(), STK::ImputeAlgo::run(), STK::SimulAlgo::run(), STK::EMPredict::run(), STK::SemiSEMPredict::run(), STK::MLMixtureCriterion::run(), STK::FullStrategy::run(), STK::SimpleStrategy::run(), STK::XemStrategy::run(), STK::StrategyFacade::run(), STK::LearnFacade::run(), setLnLikelihood(), STK::MixtureComposer::storeIntermediateResults(), STK::MixtureLearner::storeIntermediateResults(), STK::IMixtureStrategy::storeModel(), STK::MixtureComposer::writeParameters(), and STK::MixtureLearner::writeParameters().
|
inline |
Definition at line 86 of file STK_IStatModelBase.h.
References nbSample_.
Referenced by computeBIC(), and STK::IMixtureStatModel::computeICL().
|
inline |
Definition at line 96 of file STK_IStatModelBase.h.
References nbFreeParameter_.
Referenced by computeAIC(), computeBIC(), STK::IMixtureStatModel::computeICL(), STK::MixtureComposerFixedProp::create(), STK::MixtureSemiLearnerFixedProp::create(), STK::IMixtureStatModel::registerMixture(), STK::IMixtureStatModel::releaseMixture(), setNbFreeParameter(), STK::MixtureComposer::writeParameters(), and STK::MixtureLearner::writeParameters().
|
inline |
Definition at line 84 of file STK_IStatModelBase.h.
References nbSample_.
Referenced by STK::MixtureComposer::create(), STK::MixtureComposerFixedProp::create(), STK::MixtureLearner::create(), STK::MixtureSemiLearner::create(), STK::MixtureSemiLearnerFixedProp::create(), STK::MixtureLearner::createLearner(), initialize(), IStatModelBase(), IStatModelBase(), STK::IMixtureLearner::setClassLabels(), STK::MixtureSemiLearner::setLabels(), STK::IMixtureStatModel::setMixtureParameters(), STK::IMixtureAlgo::setModel(), setNbSample(), STK::MixtureComposer::writeParameters(), and STK::MixtureLearner::writeParameters().
|
inline |
Definition at line 89 of file STK_IStatModelBase.h.
References nbVariable_.
Referenced by initialize(), IStatModelBase(), and setNbVariable().
set the log-likelihood of the model
lnLikelihood | the log-likelihood of the model |
Definition at line 126 of file STK_IStatModelBase.h.
References lnLikelihood(), and lnLikelihood_.
Referenced by STK::IMixtureComposer::eStep(), STK::MixtureSemiLearner::eStep(), STK::IMixtureComposer::finalizeStep(), STK::IMixtureStatModel::finalizeStep(), STK::IMixtureComposer::initializeStep(), STK::IMixtureStatModel::initializeStep(), STK::MixtureLearner::paramUpdateStep(), STK::IMixtureStatModel::releaseMixture(), STK::IMultiStatModel< Derived >::run(), STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >::run(), STK::IMultiStatModel< Derived >::run(), STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >::run(), STK::MixtureComposer::setParametersStep(), and STK::MixtureLearner::setParametersStep().
set the number of free parameters of the model
nbFreeParameter | number of free parameters of the model |
Definition at line 111 of file STK_IStatModelBase.h.
References nbFreeParameter(), and nbFreeParameter_.
Referenced by STK::MixtureComposerFixedProp::create(), STK::MixtureSemiLearnerFixedProp::create(), STK::MixtureLearner::createLearner(), STK::GaussianModel< Array >::GaussianModel(), STK::GaussianModel< Array >::GaussianModel(), STK::IMixtureComposer::initializeStep(), STK::MixtureComposer::MixtureComposer(), STK::MixtureComposerFixedProp::MixtureComposerFixedProp(), STK::MixtureLearner::MixtureLearner(), STK::MixtureSemiLearnerFixedProp::MixtureSemiLearnerFixedProp(), STK::IMixtureStatModel::registerMixture(), STK::IMixtureStatModel::releaseMixture(), STK::IMultiStatModel< Derived >::run(), STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >::run(), STK::IMultiStatModel< Derived >::run(), and STK::IUnivStatModel< ColVector, WColVector, UnivariateLaw >::run().
set the number of samples of the model
nbSample | number of samples of the model |
Definition at line 116 of file STK_IStatModelBase.h.
References nbSample(), and nbSample_.
Referenced by STK::IStatModel< Derived >::setData(), and STK::IStatModel< Derived >::setData().
set the number of variables of the model
nbVariable | number of variables of the model |
Definition at line 121 of file STK_IStatModelBase.h.
References nbVariable(), and nbVariable_.
Referenced by STK::IStatModel< Derived >::setData(), and STK::IStatModel< Derived >::setData().
|
private |
likelihood of the samples
Definition at line 146 of file STK_IStatModelBase.h.
Referenced by initialize(), likelihood(), lnLikelihood(), and setLnLikelihood().
|
private |
number of free parameters of the model
Definition at line 148 of file STK_IStatModelBase.h.
Referenced by initialize(), nbFreeParameter(), and setNbFreeParameter().
|
private |
total available samples
Definition at line 142 of file STK_IStatModelBase.h.
Referenced by initialize(), lnNbSample(), nbSample(), and setNbSample().
|
private |
total available variables
Definition at line 144 of file STK_IStatModelBase.h.
Referenced by initialize(), nbVariable(), and setNbVariable().