Functions
vpdt_log_probability.h File Reference

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

#include <limits>
#include <vpdl/vpdt/vpdt_dist_traits.h>
#include <vnl/vnl_math.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. More...
 
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. More...
 
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. More...
 

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

◆ vpdt_gradient_log_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 
)
inline

Compute the gradient of the log of the unnormalized density.

Definition at line 59 of file vpdt_log_probability.h.

◆ vpdt_log_density()

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 29 of file vpdt_log_probability.h.

◆ vpdt_log_prob_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 
)
inline

Compute the log of the normalized probability density.

Definition at line 44 of file vpdt_log_probability.h.