STK++ 0.9.13
|
A joint Gamma model is a statistical model of the following form. More...
#include <STK_JointGammaModel.h>
Classes | |
class | dloglikelihood |
Public Types | |
typedef Array::Type | Type |
Type of the data contained in the container. | |
typedef hidden::Traits< Array >::Row | RowVector |
Type of the row vector of the container. | |
typedef hidden::Traits< Array >::Col | ColVector |
Type of the column vector of the container. | |
typedef IMultiStatModel< Array, WColVector, JointGammaParameters > | Base |
Base class. | |
![]() | |
typedef hidden::StatModelTraits< Array >::Data | Data |
Type of the container with the data. | |
typedef hidden::StatModelTraits< Array >::Type | Type |
Type of the data in the container. | |
typedef hidden::StatModelTraits< Array >::WColVector | WColVector |
Type of the vector with the weights. | |
typedef hidden::StatModelTraits< Array >::Parameters | Parameters |
Type of the parameters of the Model. | |
Public Member Functions | |
JointGammaModel () | |
default constructor. | |
JointGammaModel (Array const &data) | |
Constructor with data set. | |
JointGammaModel (Array const *p_data) | |
Constructor with a ptr on the data set. | |
JointGammaModel (JointGammaModel const &model) | |
Copy constructor. | |
virtual | ~JointGammaModel () |
destructor | |
JointGammaModel * | clone () const |
clone pattern. | |
Array2DPoint< Real > const & | shape () const |
Array2DPoint< Real > const & | scale () const |
Array2DPoint< Real > const & | mean () const |
Array2DPoint< Real > const & | meanLog () const |
vector of the mean log of the observations | |
Array2DPoint< Real > const & | variance () const |
vector of the variance of the observations | |
virtual int | computeNbFreeParameters () const |
compute the number of free parameters | |
virtual Real | computeLnLikelihood (RowVector const &rowData) const |
compute the log Likelihood of an observation. | |
![]() | |
Data const *const | p_data () const |
Parameters const & | param () const |
String const & | error () const |
void | setData (Data const *p_data) |
Set the data set. | |
bool | run () |
Estimate the parameters of the model and update the model. | |
bool | run (WColVector const &weights) |
compute the weighted empirical probability of success based on the observed variables. | |
void | writeParameters (ostream &os) |
void | writeParametersImpl (ostream &os) |
default implementation of the writeParameters method. | |
![]() | |
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 |
![]() | |
Derived & | asDerived () |
static cast : return a reference of this with a cast to the derived class. | |
Derived const & | asDerived () const |
static cast : return a const reference of this with a cast to the derived class. | |
Derived * | asPtrDerived () |
static cast : return a ptr on a Derived of this with a cast to the derived class. | |
Derived const * | asPtrDerived () const |
static cast : return a ptr on a constant Derived of this with a cast to the derived class. | |
Derived * | clone () const |
create a leaf using the copy constructor of the Derived class. | |
Derived * | clone (bool isRef) const |
create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not. | |
Protected Member Functions | |
virtual void | computeParameters () |
compute the parameters | |
virtual void | computeParameters (WColVector const &weights) |
compute the weighted parameters | |
![]() | |
IMultiStatModel () | |
default constructor. | |
IMultiStatModel (Data const &data) | |
Constructor with data set. | |
IMultiStatModel (Data const *p_data) | |
Constructor with a ptr on the data set. | |
IMultiStatModel (IMultiStatModel const &model) | |
Copy constructor. | |
~IMultiStatModel () | |
destructor | |
Parameters & | param () |
Real | computeLnLikelihood () const |
compute the log Likelihood of the statistical model. | |
void | update () |
update the model if a new data set is set | |
![]() | |
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 | |
![]() | |
IRecursiveTemplate () | |
constructor. | |
~IRecursiveTemplate () | |
destructor. | |
Private Member Functions | |
Array2DPoint< Real > & | shape () |
Array2DPoint< Real > & | scale () |
Array2DPoint< Real > & | mean () |
Array2DPoint< Real > & | meanLog () |
vector of the mean log of the observations | |
Array2DPoint< Real > & | variance () |
vector of the variance of the observations | |
Additional Inherited Members | |
![]() | |
Data const * | p_data_ |
Pointer on the parameters of the model. | |
Parameters | param_ |
Pointer on the parameters of the model. | |
String | msg_error_ |
String with the last error message. | |
A joint Gamma model is a statistical model of the following form.
Definition at line 110 of file STK_JointGammaModel.h.
typedef IMultiStatModel<Array, WColVector, JointGammaParameters > STK::JointGammaModel< Array, WColVector >::Base |
Base class.
Definition at line 121 of file STK_JointGammaModel.h.
typedef hidden::Traits<Array>::Col STK::JointGammaModel< Array, WColVector >::ColVector |
Type of the column vector of the container.
Definition at line 119 of file STK_JointGammaModel.h.
typedef hidden::Traits<Array>::Row STK::JointGammaModel< Array, WColVector >::RowVector |
Type of the row vector of the container.
Definition at line 117 of file STK_JointGammaModel.h.
typedef Array::Type STK::JointGammaModel< Array, WColVector >::Type |
Type of the data contained in the container.
Definition at line 115 of file STK_JointGammaModel.h.
|
inline |
default constructor.
Definition at line 125 of file STK_JointGammaModel.h.
Referenced by STK::JointGammaModel< Array, WColVector >::clone().
|
inline |
|
inline |
Constructor with a ptr on the data set.
Definition at line 129 of file STK_JointGammaModel.h.
|
inline |
|
inlinevirtual |
|
inline |
clone pattern.
Definition at line 135 of file STK_JointGammaModel.h.
References STK::JointGammaModel< Array, WColVector >::JointGammaModel().
|
inlinevirtual |
compute the log Likelihood of an observation.
Definition at line 152 of file STK_JointGammaModel.h.
References STK::Law::Gamma::lpdf(), STK::JointGammaModel< Array, WColVector >::scale(), STK::JointGammaModel< Array, WColVector >::shape(), and STK::sum().
|
inlinevirtual |
compute the number of free parameters
Definition at line 149 of file STK_JointGammaModel.h.
References STK::IMultiStatModel< Array, WColVector, JointGammaParameters >::p_data().
|
inlineprotectedvirtual |
compute the parameters
Definition at line 176 of file STK_JointGammaModel.h.
References STK::Algo::findZero(), STK::JointGammaModel< Array, WColVector >::mean(), STK::JointGammaModel< Array, WColVector >::meanLog(), STK::IMultiStatModel< Array, WColVector, JointGammaParameters >::p_data(), STK::JointGammaModel< Array, WColVector >::scale(), STK::JointGammaModel< Array, WColVector >::shape(), and STK::JointGammaModel< Array, WColVector >::variance().
|
inlineprotectedvirtual |
compute the weighted parameters
Definition at line 194 of file STK_JointGammaModel.h.
References STK::Algo::findZero(), STK::JointGammaModel< Array, WColVector >::mean(), STK::JointGammaModel< Array, WColVector >::meanLog(), STK::IMultiStatModel< Array, WColVector, JointGammaParameters >::p_data(), STK::JointGammaModel< Array, WColVector >::scale(), STK::JointGammaModel< Array, WColVector >::shape(), and STK::JointGammaModel< Array, WColVector >::variance().
|
inlineprivate |
Definition at line 218 of file STK_JointGammaModel.h.
|
inline |
Definition at line 142 of file STK_JointGammaModel.h.
Referenced by STK::JointGammaModel< Array, WColVector >::computeParameters(), and STK::JointGammaModel< Array, WColVector >::computeParameters().
|
inlineprivate |
vector of the mean log of the observations
Definition at line 220 of file STK_JointGammaModel.h.
|
inline |
vector of the mean log of the observations
Definition at line 144 of file STK_JointGammaModel.h.
Referenced by STK::JointGammaModel< Array, WColVector >::computeParameters(), and STK::JointGammaModel< Array, WColVector >::computeParameters().
|
inlineprivate |
Definition at line 216 of file STK_JointGammaModel.h.
|
inline |
Definition at line 140 of file STK_JointGammaModel.h.
Referenced by STK::JointGammaModel< Array, WColVector >::computeLnLikelihood(), STK::JointGammaModel< Array, WColVector >::computeParameters(), and STK::JointGammaModel< Array, WColVector >::computeParameters().
|
inlineprivate |
Definition at line 214 of file STK_JointGammaModel.h.
|
inline |
Definition at line 138 of file STK_JointGammaModel.h.
Referenced by STK::JointGammaModel< Array, WColVector >::computeLnLikelihood(), STK::JointGammaModel< Array, WColVector >::computeParameters(), and STK::JointGammaModel< Array, WColVector >::computeParameters().
|
inlineprivate |
vector of the variance of the observations
Definition at line 222 of file STK_JointGammaModel.h.
|
inline |
vector of the variance of the observations
Definition at line 146 of file STK_JointGammaModel.h.
Referenced by STK::JointGammaModel< Array, WColVector >::computeParameters(), and STK::JointGammaModel< Array, WColVector >::computeParameters().