STK++ 0.9.13
STK::MultiLaw::JointGamma< RowVector > Class Template Reference

Implement the Joint Gamma probability law. More...

#include <STK_MultiLaw_JointGamma.h>

Inheritance diagram for STK::MultiLaw::JointGamma< RowVector >:
Inheritance graph

Public Types

typedef JointProbability< RowVector, Law::GammaBase
 
- Public Types inherited from STK::MultiLaw::JointProbability< RowVector, Law::Gamma >
typedef RowVector::Type Type
 
typedef IMultiLaw< RowVector > Base
 

Public Member Functions

 JointGamma ()
 default constructor
 
 JointGamma (int const &nbVar)
 constructor
 
virtual ~JointGamma ()
 destructor
 
Real constshape (int const &j) const
 
void setShape (int const &j, Real const &shape)
 set the shape of the jth law
 
Real constscale (int const &j) const
 
void setScale (int const &j, Real const &scale)
 set the scale of the jth law
 
- Public Member Functions inherited from STK::MultiLaw::JointProbability< RowVector, Law::Gamma >
 JointProbability (String const &name)
 Constructor.
 
 JointProbability (String const &name, int nbVar)
 Constructor.
 
virtual ~JointProbability ()
 destructor
 
Array1D< Law > constJointLaw () const
 
Law constlaw (int const &j) const
 
Law & law (int const &j)
 
Law constatLaw (int const &j) const
 
Law & atLaw (int const &j)
 
void resize (int const &nbVar)
 resize the joint probability
 
virtual Real pdf (RowVector const &x) const
 compute the probability distribution function (density) of the multivariate law.
 
virtual Real lpdf (RowVector const &x) const
 compute the log probability distribution function Give the value of the log-pdf at the point x.
 
virtual void rand (RowVector &x) const
 simulate a realization of the joint law and store the result in x.
 
- Public Member Functions inherited from STK::MultiLaw::IMultiLaw< RowVector >
virtual ~IMultiLaw ()
 destructor.
 
- Public Member Functions inherited from STK::Law::ILawBase
String constname () const
 

Additional Inherited Members

- Protected Member Functions inherited from STK::MultiLaw::IMultiLaw< RowVector >
 IMultiLaw (String const &name)
 Constructor.
 
- Protected Member Functions inherited from STK::Law::ILawBase
 ILawBase (String const &name)
 Constructor.
 
 ~ILawBase ()
 destructor.
 
- Protected Attributes inherited from STK::MultiLaw::JointProbability< RowVector, Law::Gamma >
Array1D< Law > jointLaw_
 Array with the marginal laws.
 
- Protected Attributes inherited from STK::Law::ILawBase
String name_
 Name of the Law.
 

Detailed Description

template<class RowVector>
class STK::MultiLaw::JointGamma< RowVector >

Implement the Joint Gamma probability law.

Definition at line 50 of file STK_MultiLaw_JointGamma.h.

Member Typedef Documentation

◆ Base

template<class RowVector >
typedef JointProbability<RowVector, Law::Gamma> STK::MultiLaw::JointGamma< RowVector >::Base

Definition at line 53 of file STK_MultiLaw_JointGamma.h.

Constructor & Destructor Documentation

◆ JointGamma() [1/2]

template<class RowVector >
STK::MultiLaw::JointGamma< RowVector >::JointGamma ( )
inline

default constructor

Definition at line 55 of file STK_MultiLaw_JointGamma.h.

55: Base(_T("JointGamma")) {}
#define _T(x)
Let x unmodified.
JointProbability< RowVector, Law::Gamma > Base

◆ JointGamma() [2/2]

template<class RowVector >
STK::MultiLaw::JointGamma< RowVector >::JointGamma ( int const nbVar)
inline

constructor

Definition at line 57 of file STK_MultiLaw_JointGamma.h.

57: Base(_T("JointGamma"), nbVar) {}

◆ ~JointGamma()

template<class RowVector >
virtual STK::MultiLaw::JointGamma< RowVector >::~JointGamma ( )
inlinevirtual

destructor

Definition at line 59 of file STK_MultiLaw_JointGamma.h.

59{}

Member Function Documentation

◆ scale()

template<class RowVector >
Real const & STK::MultiLaw::JointGamma< RowVector >::scale ( int const j) const
inline
Returns
the scale of the jth law

Definition at line 66 of file STK_MultiLaw_JointGamma.h.

66{ return this->law(j).scale();}

References STK::MultiLaw::JointProbability< RowVector, Law::Gamma >::law().

Referenced by STK::MultiLaw::JointGamma< RowVector >::setScale().

◆ setScale()

template<class RowVector >
void STK::MultiLaw::JointGamma< RowVector >::setScale ( int const j,
Real const scale 
)
inline

set the scale of the jth law

Definition at line 68 of file STK_MultiLaw_JointGamma.h.

69 { this->law(j).setScale(scale);}
Real const & scale(int const &j) const

References STK::MultiLaw::JointProbability< RowVector, Law::Gamma >::law(), and STK::MultiLaw::JointGamma< RowVector >::scale().

◆ setShape()

template<class RowVector >
void STK::MultiLaw::JointGamma< RowVector >::setShape ( int const j,
Real const shape 
)
inline

set the shape of the jth law

Definition at line 63 of file STK_MultiLaw_JointGamma.h.

64 { this->law(j).setShape(shape);}
Real const & shape(int const &j) const

References STK::MultiLaw::JointProbability< RowVector, Law::Gamma >::law(), and STK::MultiLaw::JointGamma< RowVector >::shape().

◆ shape()

template<class RowVector >
Real const & STK::MultiLaw::JointGamma< RowVector >::shape ( int const j) const
inline
Returns
the shape of the jth law

Definition at line 61 of file STK_MultiLaw_JointGamma.h.

61{ return this->law(j).shape();}

References STK::MultiLaw::JointProbability< RowVector, Law::Gamma >::law().

Referenced by STK::MultiLaw::JointGamma< RowVector >::setShape().


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