A functor that computes the probability of each component in a mixture. More...
#include <bsta_bayes_functor.h>
Public Types | |
enum | { return_dim = comp_dist_::dimension } |
typedef vector_ | return_T |
Public Member Functions | |
bsta_mixture_prob_functor (bool normalize=true, unsigned int num_cmps=3) | |
bool | operator() (const mix_dist_ &mix, const vector_ &sample, return_T &result) const |
The main function. | |
Protected Attributes | |
unsigned int | num_cmps_ |
bool | normalize_ |
Private Types | |
typedef bsta_num_obs< comp_dist_ > | comp_obs_dist_ |
typedef bsta_mixture < comp_obs_dist_ > | mix_dist_ |
typedef comp_dist_::math_type | T |
typedef vnl_vector_fixed< T, comp_dist_::dimension > | vector_ |
A functor that computes the probability of each component in a mixture.
Definition at line 57 of file bsta_bayes_functor.h.
typedef bsta_num_obs<comp_dist_> bsta_mixture_prob_functor< comp_dist_ >::comp_obs_dist_ [private] |
Definition at line 60 of file bsta_bayes_functor.h.
typedef bsta_mixture<comp_obs_dist_> bsta_mixture_prob_functor< comp_dist_ >::mix_dist_ [private] |
Definition at line 61 of file bsta_bayes_functor.h.
typedef vector_ bsta_mixture_prob_functor< comp_dist_ >::return_T |
Definition at line 66 of file bsta_bayes_functor.h.
typedef comp_dist_::math_type bsta_mixture_prob_functor< comp_dist_ >::T [private] |
Definition at line 62 of file bsta_bayes_functor.h.
typedef vnl_vector_fixed<T,comp_dist_::dimension> bsta_mixture_prob_functor< comp_dist_ >::vector_ [private] |
Definition at line 63 of file bsta_bayes_functor.h.
anonymous enum |
Definition at line 67 of file bsta_bayes_functor.h.
bsta_mixture_prob_functor< comp_dist_ >::bsta_mixture_prob_functor | ( | bool | normalize = true , |
unsigned int | num_cmps = 3 |
||
) | [inline] |
Definition at line 69 of file bsta_bayes_functor.h.
bool bsta_mixture_prob_functor< comp_dist_ >::operator() | ( | const mix_dist_ & | mix, |
const vector_ & | sample, | ||
return_T & | result | ||
) | const [inline] |
The main function.
Definition at line 73 of file bsta_bayes_functor.h.
bool bsta_mixture_prob_functor< comp_dist_ >::normalize_ [protected] |
Definition at line 105 of file bsta_bayes_functor.h.
unsigned int bsta_mixture_prob_functor< comp_dist_ >::num_cmps_ [protected] |
Definition at line 104 of file bsta_bayes_functor.h.