Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
bsta_mg_statistical_updater< mix_dist_ > Class Template Reference

A mixture of Gaussians statistical updater. More...

#include <bsta_adaptive_updater.h>

Inheritance diagram for bsta_mg_statistical_updater< mix_dist_ >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { data_dimension = gaussian_::dimension }
typedef mix_dist_::dist_type obs_gaussian_
typedef
obs_gaussian_::contained_type 
gaussian_
typedef gaussian_::math_type T
typedef gaussian_::vector_type vector_
typedef bsta_num_obs< mix_dist_ > obs_mix_dist_
typedef obs_mix_dist_ distribution_type
 for compatibility with vpdl/vpdt.
typedef gaussian_::field_type field_type
 for compatibility with vpdl/vpdt.

Public Member Functions

 bsta_mg_statistical_updater (const gaussian_ &model, unsigned int max_cmp=5, T g_thresh=T(3), T min_stdev=T(0))
 Constructor.
void operator() (obs_mix_dist_ &mix, const vector_ &sample) const
 The main function.
void update (mix_dist_ &mix, const vector_ &sample, T alpha) const
 The update function.

Public Attributes

T gt2_
 Squared Gaussian Mahalanobis distance threshold.
T min_var_
 Minimum variance allowed in each Gaussian component.

Protected Member Functions

void insert (mix_dist_ &mixture, const vector_ &sample, T init_weight) const
 insert a sample in the mixture.

Protected Attributes

obs_gaussian_ init_gaussian_
 A model for new Gaussians inserted.
unsigned int max_components_
 The maximum number of components in the mixture.

Detailed Description

template<class mix_dist_>
class bsta_mg_statistical_updater< mix_dist_ >

A mixture of Gaussians statistical updater.

This updater treats all data equally

Definition at line 90 of file bsta_adaptive_updater.h.


Member Typedef Documentation

template<class mix_dist_ >
typedef obs_mix_dist_ bsta_mg_statistical_updater< mix_dist_ >::distribution_type

for compatibility with vpdl/vpdt.

Reimplemented from bsta_mg_adaptive_updater< mix_dist_ >.

Reimplemented in bsta_mg_weighted_updater< mix_dist_ >, and bsta_mg_window_updater< mix_dist_ >.

Definition at line 100 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
typedef gaussian_::field_type bsta_mg_adaptive_updater< mix_dist_ >::field_type [inherited]

for compatibility with vpdl/vpdt.

Definition at line 41 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
typedef obs_gaussian_::contained_type bsta_mg_statistical_updater< mix_dist_ >::gaussian_
template<class mix_dist_ >
typedef mix_dist_::dist_type bsta_mg_statistical_updater< mix_dist_ >::obs_gaussian_
template<class mix_dist_ >
typedef bsta_num_obs<mix_dist_> bsta_mg_statistical_updater< mix_dist_ >::obs_mix_dist_
template<class mix_dist_ >
typedef gaussian_::math_type bsta_mg_statistical_updater< mix_dist_ >::T
template<class mix_dist_ >
typedef gaussian_::vector_type bsta_mg_statistical_updater< mix_dist_ >::vector_

Member Enumeration Documentation

template<class mix_dist_ >
anonymous enum
Enumerator:
data_dimension 

Definition at line 102 of file bsta_adaptive_updater.h.


Constructor & Destructor Documentation

template<class mix_dist_ >
bsta_mg_statistical_updater< mix_dist_ >::bsta_mg_statistical_updater ( const gaussian_ model,
unsigned int  max_cmp = 5,
T  g_thresh = T(3),
T  min_stdev = T(0) 
) [inline]

Constructor.

Definition at line 105 of file bsta_adaptive_updater.h.


Member Function Documentation

template<class mix_dist_ >
void bsta_mg_adaptive_updater< mix_dist_ >::insert ( mix_dist_ &  mixture,
const vector_ sample,
T  init_weight 
) const [inline, protected, inherited]

insert a sample in the mixture.

Definition at line 52 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
void bsta_mg_statistical_updater< mix_dist_ >::operator() ( obs_mix_dist_ mix,
const vector_ sample 
) const [inline]

The main function.

Reimplemented in bsta_mg_window_updater< mix_dist_ >.

Definition at line 113 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
void bsta_mg_statistical_updater< mix_dist_ >::update ( mix_dist_ &  mix,
const vector_ sample,
T  alpha 
) const

The update function.

Definition at line 24 of file bsta_adaptive_updater.txx.


Member Data Documentation

template<class mix_dist_ >
T bsta_mg_statistical_updater< mix_dist_ >::gt2_

Squared Gaussian Mahalanobis distance threshold.

Definition at line 124 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
obs_gaussian_ bsta_mg_adaptive_updater< mix_dist_ >::init_gaussian_ [mutable, protected, inherited]

A model for new Gaussians inserted.

Definition at line 81 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
unsigned int bsta_mg_adaptive_updater< mix_dist_ >::max_components_ [protected, inherited]

The maximum number of components in the mixture.

Definition at line 83 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
T bsta_mg_statistical_updater< mix_dist_ >::min_var_

Minimum variance allowed in each Gaussian component.

Definition at line 126 of file bsta_adaptive_updater.h.


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