Functions
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 <cassert>

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. More...
 
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. More...
 

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

◆ vpdt_box_prob()

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 46 of file vpdt_probability.h.

◆ vpdt_prob_density()

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 30 of file vpdt_probability.h.