The basic functions for probability calculations. More...
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. |
The basic functions for probability calculations.
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.
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.
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.