Public Types | Public Member Functions | Protected Attributes | Private Types
bsta_mixture_prob_functor< comp_dist_ > Class Template Reference

A functor that computes the probability of each component in a mixture. More...

#include <bsta_bayes_functor.h>

List of all members.

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_

Detailed Description

template<class comp_dist_>
class bsta_mixture_prob_functor< comp_dist_ >

A functor that computes the probability of each component in a mixture.

Definition at line 57 of file bsta_bayes_functor.h.


Member Typedef Documentation

template<class comp_dist_ >
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.

template<class comp_dist_ >
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.

template<class comp_dist_ >
typedef vector_ bsta_mixture_prob_functor< comp_dist_ >::return_T

Definition at line 66 of file bsta_bayes_functor.h.

template<class comp_dist_ >
typedef comp_dist_::math_type bsta_mixture_prob_functor< comp_dist_ >::T [private]

Definition at line 62 of file bsta_bayes_functor.h.

template<class comp_dist_ >
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.


Member Enumeration Documentation

template<class comp_dist_ >
anonymous enum
Enumerator:
return_dim 

Definition at line 67 of file bsta_bayes_functor.h.


Constructor & Destructor Documentation

template<class comp_dist_ >
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.


Member Function Documentation

template<class comp_dist_ >
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.


Member Data Documentation

template<class comp_dist_ >
bool bsta_mixture_prob_functor< comp_dist_ >::normalize_ [protected]

Definition at line 105 of file bsta_bayes_functor.h.

template<class comp_dist_ >
unsigned int bsta_mixture_prob_functor< comp_dist_ >::num_cmps_ [protected]

Definition at line 104 of file bsta_bayes_functor.h.


The documentation for this class was generated from the following file: