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

The basic functions for probability calculations. More...

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

Go to the source code of this file.

Functions

template<class dist >
vpdt_dist_traits< dist >
::scalar_type 
vpdt_prob_density (const dist &d, const typename vpdt_dist_traits< dist >::field_type &pt)
 Compute the probability from the density and normalization constant.
template<class dist >
vpdt_dist_traits< dist >
::scalar_type 
vpdt_box_prob (const dist &d, const typename vpdt_dist_traits< dist >::field_type &min_pt, const typename vpdt_dist_traits< dist >::field_type &max_pt)
 The probability of being in an axis-aligned box.

Detailed Description

The basic functions for probability calculations.

Author:
Matthew Leotta
Date:
March 13, 2009

These functions provide default implementations for various probability calculation functions. They are written in terms of distribution member functions

    Modifications
     <None yet>
   

Definition in file vpdt_probability.h.


Function Documentation

template<class dist >
vpdt_dist_traits<dist>::scalar_type vpdt_box_prob ( const dist &  d,
const typename vpdt_dist_traits< dist >::field_type &  min_pt,
const typename vpdt_dist_traits< dist >::field_type &  max_pt 
)

The probability of being in an axis-aligned box.

The box is defined by two points, the minimum and maximum. Implemented in terms of vpdt_cumulative_prob() by default.

Definition at line 43 of file vpdt_probability.h.

template<class dist >
vpdt_dist_traits<dist>::scalar_type vpdt_prob_density ( const dist &  d,
const typename vpdt_dist_traits< dist >::field_type &  pt 
) [inline]

Compute the probability from the density and normalization constant.

Definition at line 27 of file vpdt_probability.h.