Functions
core/vpdl/vpdt/vpdt_log_probability.h File Reference

The basic functions for log of probability calculation. More...

#include <vpdl/vpdt/vpdt_dist_traits.h>
#include <vnl/vnl_math.h>
#include <vcl_limits.h>

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.

Detailed Description

The basic functions for log of probability calculation.

Author:
Matthew Leotta
Date:
March 13, 2009

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.


Function Documentation

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 
) [inline]

Compute the gradient of the log of the unnormalized density.

Definition at line 56 of file vpdt_log_probability.h.

template<class dist >
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.

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 
) [inline]

Compute the log of the normalized probability density.

Definition at line 41 of file vpdt_log_probability.h.