Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes
bsta_mg_weighted_updater< mix_dist_ > Class Template Reference

A mixture of Gaussians weighted statistical updater. More...

#include <bsta_adaptive_updater.h>

Inheritance diagram for bsta_mg_weighted_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.

Public Member Functions

 bsta_mg_weighted_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 T weight) const
 The main function.

Private Types

enum  { data_dimension = gaussian_::dimension }
typedef gaussian_::field_type field_type
 for compatibility with vpdl/vpdt.

Private Member Functions

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.
void insert (mix_dist_ &mixture, const vector_ &sample, T init_weight) const
 insert a sample in the mixture.

Private Attributes

T gt2_
 Squared Gaussian Mahalanobis distance threshold.
T min_var_
 Minimum variance allowed in each Gaussian component.
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_weighted_updater< mix_dist_ >

A mixture of Gaussians weighted statistical updater.

This updater treats data according to a specified weight

Definition at line 171 of file bsta_adaptive_updater.h.


Member Typedef Documentation

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

for compatibility with vpdl/vpdt.

Reimplemented from bsta_mg_statistical_updater< mix_dist_ >.

Definition at line 181 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_weighted_updater< mix_dist_ >::gaussian_

Reimplemented from bsta_mg_statistical_updater< mix_dist_ >.

Definition at line 175 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
typedef mix_dist_::dist_type bsta_mg_weighted_updater< mix_dist_ >::obs_gaussian_

Reimplemented from bsta_mg_statistical_updater< mix_dist_ >.

Definition at line 174 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
typedef bsta_num_obs<mix_dist_> bsta_mg_weighted_updater< mix_dist_ >::obs_mix_dist_

Reimplemented from bsta_mg_statistical_updater< mix_dist_ >.

Definition at line 178 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
typedef gaussian_::math_type bsta_mg_weighted_updater< mix_dist_ >::T

Reimplemented from bsta_mg_statistical_updater< mix_dist_ >.

Definition at line 176 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
typedef gaussian_::vector_type bsta_mg_weighted_updater< mix_dist_ >::vector_

Reimplemented from bsta_mg_statistical_updater< mix_dist_ >.

Definition at line 177 of file bsta_adaptive_updater.h.


Member Enumeration Documentation

template<class mix_dist_ >
anonymous enum [inherited]
Enumerator:
data_dimension 

Definition at line 102 of file bsta_adaptive_updater.h.

template<class mix_dist_ >
anonymous enum
Enumerator:
data_dimension 

Definition at line 183 of file bsta_adaptive_updater.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 186 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, inherited]

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_weighted_updater< mix_dist_ >::operator() ( obs_mix_dist_ mix,
const vector_ sample,
const T  weight 
) const [inline]

The main function.

Definition at line 193 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 [inherited]

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_ [inherited]

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_ [inherited]

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 file: