Classes | Functions
core/vpdl/vpdt/vpdt_mixture_of.h File Reference

A mixture of a fixed type of distributions. More...

#include <vpdl/vpdt/vpdt_dist_traits.h>
#include <vpdl/vpdt/vpdt_probability.h>
#include <vcl_cassert.h>
#include <vcl_vector.h>
#include <vcl_algorithm.h>
#include <vcl_memory.h>

Go to the source code of this file.

Classes

struct  vpdt_is_mixture< vpdt_mixture_of< dist > >
class  vpdt_mixture_of< dist_t >
 A mixture of a fixed type of distributions. More...
struct  vpdt_mixture_of< dist_t >::component
 A struct to hold the component distributions and weights. More...
class  vpdt_mixture_of< dist_t >::sort_weight
 This functor is used by default for sorting with STL. More...
class  vpdt_mixture_of< dist_t >::sort_adaptor< comp_type_ >
 This adaptor allows users to define ordering functors on the components without accessing the components directly. More...

Functions

template<class dist >
vpdt_dist_traits
< vpdt_mixture_of< dist >
>::scalar_type 
vpdt_box_prob (const vpdt_mixture_of< dist > &d, const typename vpdt_dist_traits< vpdt_mixture_of< dist > >::field_type &min_pt, const typename vpdt_dist_traits< vpdt_mixture_of< dist > >::field_type &max_pt)
 The probability of being in an axis-aligned box.

Detailed Description

A mixture of a fixed type of distributions.

Author:
Matthew Leotta
Date:
February 24, 2009
   Modifications
     None
   

Definition in file vpdt_mixture_of.h.


Function Documentation

template<class dist >
vpdt_dist_traits< vpdt_mixture_of< dist > >::scalar_type vpdt_box_prob ( const vpdt_mixture_of< dist > &  d,
const typename vpdt_dist_traits< vpdt_mixture_of< dist > >::field_type &  min_pt,
const typename vpdt_dist_traits< vpdt_mixture_of< 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 361 of file vpdt_mixture_of.h.