STK++ 0.9.13
|
joint density class for the multivariate distributions. More...
#include <STK_MultiLaw_IMultiLaw.h>
Public Types | |
typedef RowVector::Type | Type |
typedef IMultiLaw< RowVector > | Base |
Public Member Functions | |
JointProbability (String const &name) | |
Constructor. | |
JointProbability (String const &name, int nbVar) | |
Constructor. | |
virtual | ~JointProbability () |
destructor | |
Array1D< Law > const & | JointLaw () const |
Law const & | law (int const &j) const |
Law & | law (int const &j) |
Law const & | atLaw (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. | |
![]() | |
virtual | ~IMultiLaw () |
destructor. | |
![]() | |
String const & | name () const |
Protected Attributes | |
Array1D< Law > | jointLaw_ |
Array with the marginal laws. | |
![]() | |
String | name_ |
Name of the Law. | |
Additional Inherited Members | |
![]() | |
IMultiLaw (String const &name) | |
Constructor. | |
![]() | |
ILawBase (String const &name) | |
Constructor. | |
~ILawBase () | |
destructor. | |
joint density class for the multivariate distributions.
Given some sample x in some data space, a JointProbability will model a joint probability law. All the marginal densities/probabilities will belong to the same family.
RowVector | is the type of container containing a sample x. |
Law | Any probability law deriving from Law::IUnivLaw. |
Definition at line 100 of file STK_MultiLaw_IMultiLaw.h.
typedef IMultiLaw<RowVector> STK::MultiLaw::JointProbability< RowVector, Law >::Base |
Definition at line 104 of file STK_MultiLaw_IMultiLaw.h.
typedef RowVector::Type STK::MultiLaw::JointProbability< RowVector, Law >::Type |
Definition at line 103 of file STK_MultiLaw_IMultiLaw.h.
|
inline |
Constructor.
name | name of the joint law |
Definition at line 108 of file STK_MultiLaw_IMultiLaw.h.
|
inline |
Constructor.
name | name of the joint law |
nbVar | dimension of the sample |
Definition at line 114 of file STK_MultiLaw_IMultiLaw.h.
|
inlinevirtual |
|
inline |
Definition at line 128 of file STK_MultiLaw_IMultiLaw.h.
References STK::ITContainer1D< Derived >::at(), and STK::MultiLaw::JointProbability< RowVector, Law >::jointLaw_.
|
inline |
Definition at line 126 of file STK_MultiLaw_IMultiLaw.h.
References STK::ITContainer1D< Derived >::at(), and STK::MultiLaw::JointProbability< RowVector, Law >::jointLaw_.
|
inline |
Definition at line 119 of file STK_MultiLaw_IMultiLaw.h.
References STK::MultiLaw::JointProbability< RowVector, Law >::jointLaw_.
|
inline |
Definition at line 124 of file STK_MultiLaw_IMultiLaw.h.
References STK::MultiLaw::JointProbability< RowVector, Law >::jointLaw_.
|
inline |
Definition at line 122 of file STK_MultiLaw_IMultiLaw.h.
References STK::MultiLaw::JointProbability< RowVector, Law >::jointLaw_.
|
inlinevirtual |
compute the log probability distribution function Give the value of the log-pdf at the point x.
x | the multivariate value to compute the lpdf. |
Implements STK::MultiLaw::IMultiLaw< RowVector >.
Definition at line 145 of file STK_MultiLaw_IMultiLaw.h.
References STK::Arithmetic< Type >::isNA(), STK::MultiLaw::JointProbability< RowVector, Law >::jointLaw_, STK::MultiLaw::JointProbability< RowVector, Law >::lpdf(), STK::IArray1D< Derived >::range(), STKRUNTIME_ERROR_NO_ARG, and STK::sum().
Referenced by STK::MultiLaw::JointProbability< RowVector, Law >::lpdf(), and STK::MultiLaw::JointProbability< RowVector, Law >::pdf().
|
inlinevirtual |
compute the probability distribution function (density) of the multivariate law.
Give the value of the pdf at the point x.
x | the multivariate value to compute the pdf. |
Implements STK::MultiLaw::IMultiLaw< RowVector >.
Definition at line 138 of file STK_MultiLaw_IMultiLaw.h.
References STK::MultiLaw::JointProbability< RowVector, Law >::lpdf().
|
inlinevirtual |
simulate a realization of the joint law and store the result in x.
[out] | x | the simulated value. |
Implements STK::MultiLaw::IMultiLaw< RowVector >.
Definition at line 158 of file STK_MultiLaw_IMultiLaw.h.
References STK::MultiLaw::JointProbability< RowVector, Law >::jointLaw_, and STK::IArray1D< Derived >::range().
|
inline |
resize the joint probability
Definition at line 130 of file STK_MultiLaw_IMultiLaw.h.
References STK::MultiLaw::JointProbability< RowVector, Law >::jointLaw_, and STK::ITContainer1D< Derived >::resize().
|
protected |
Array with the marginal laws.
Definition at line 166 of file STK_MultiLaw_IMultiLaw.h.
Referenced by STK::MultiLaw::JointProbability< RowVector, Law >::atLaw(), STK::MultiLaw::JointProbability< RowVector, Law >::atLaw(), STK::MultiLaw::JointProbability< RowVector, Law >::JointLaw(), STK::MultiLaw::JointProbability< RowVector, Law >::law(), STK::MultiLaw::JointProbability< RowVector, Law >::law(), STK::MultiLaw::JointProbability< RowVector, Law >::lpdf(), STK::MultiLaw::JointProbability< RowVector, Law >::rand(), and STK::MultiLaw::JointProbability< RowVector, Law >::resize().