The basic functions for log of probability calculation. More...
Go to the source code of this file.
Functions | |
template<class dist > | |
vpdt_dist_traits< dist > ::scalar_type | vpdt_log_density (const dist &d, const typename vpdt_dist_traits< dist >::field_type &pt) |
Compute the log of the unnormalized density. | |
template<class dist > | |
vpdt_dist_traits< dist > ::scalar_type | vpdt_log_prob_density (const dist &d, const typename vpdt_dist_traits< dist >::field_type &pt) |
Compute the log of the normalized probability density. | |
template<class dist > | |
vpdt_dist_traits< dist > ::scalar_type | vpdt_gradient_log_density (const dist &d, const typename vpdt_dist_traits< dist >::field_type &pt, const typename vpdt_dist_traits< dist >::vector_type &g) |
Compute the gradient of the log of the unnormalized density. |
The basic functions for log of probability calculation.
These functions provide default implementations for various log of probability calculation functions. They are written in terms of distribution member functions
Modifications None
Definition in file vpdt_log_probability.h.
vpdt_dist_traits<dist>::scalar_type vpdt_gradient_log_density | ( | const dist & | d, |
const typename vpdt_dist_traits< dist >::field_type & | pt, | ||
const typename vpdt_dist_traits< dist >::vector_type & | g | ||
) | [inline] |
Compute the gradient of the log of the unnormalized density.
Definition at line 56 of file vpdt_log_probability.h.
vpdt_dist_traits<dist>::scalar_type vpdt_log_density | ( | const dist & | d, |
const typename vpdt_dist_traits< dist >::field_type & | pt | ||
) | [inline] |
Compute the log of the unnormalized density.
Definition at line 26 of file vpdt_log_probability.h.
vpdt_dist_traits<dist>::scalar_type vpdt_log_prob_density | ( | const dist & | d, |
const typename vpdt_dist_traits< dist >::field_type & | pt | ||
) | [inline] |
Compute the log of the normalized probability density.
Definition at line 41 of file vpdt_log_probability.h.