Public Types | Public Member Functions | Private Types
bsta_bayes_functor< comp_dist_ > Class Template Reference

A functor that classifies a sample as one of the components of the mixture. More...

#include <bsta_bayes_functor.h>

List of all members.

Public Types

enum  { return_dim = 1 }
typedef int return_T

Public Member Functions

bool operator() (const mix_dist_ &mix, const vector_ &sample, return_T &best_index) const
 The main function.

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_bayes_functor< comp_dist_ >

A functor that classifies a sample as one of the components of the mixture.

Definition at line 21 of file bsta_bayes_functor.h.


Member Typedef Documentation

template<class comp_dist_ >
typedef bsta_num_obs<comp_dist_> bsta_bayes_functor< comp_dist_ >::comp_obs_dist_ [private]

Definition at line 24 of file bsta_bayes_functor.h.

template<class comp_dist_ >
typedef bsta_mixture<comp_obs_dist_> bsta_bayes_functor< comp_dist_ >::mix_dist_ [private]

Definition at line 25 of file bsta_bayes_functor.h.

template<class comp_dist_ >
typedef int bsta_bayes_functor< comp_dist_ >::return_T

Definition at line 30 of file bsta_bayes_functor.h.

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

Definition at line 26 of file bsta_bayes_functor.h.

template<class comp_dist_ >
typedef vnl_vector_fixed<T,comp_dist_::dimension> bsta_bayes_functor< comp_dist_ >::vector_ [private]

Definition at line 27 of file bsta_bayes_functor.h.


Member Enumeration Documentation

template<class comp_dist_ >
anonymous enum
Enumerator:
return_dim 

Definition at line 31 of file bsta_bayes_functor.h.


Member Function Documentation

template<class comp_dist_ >
bool bsta_bayes_functor< comp_dist_ >::operator() ( const mix_dist_ mix,
const vector_ sample,
return_T best_index 
) const [inline]

The main function.

Definition at line 34 of file bsta_bayes_functor.h.


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