A mixture of Gaussians statistical updater. More...
#include <bsta_adaptive_updater.h>
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. |
A mixture of Gaussians statistical updater.
This updater treats all data equally
Definition at line 90 of file bsta_adaptive_updater.h.
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.
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.
typedef obs_gaussian_::contained_type bsta_mg_statistical_updater< mix_dist_ >::gaussian_ |
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 94 of file bsta_adaptive_updater.h.
typedef mix_dist_::dist_type bsta_mg_statistical_updater< mix_dist_ >::obs_gaussian_ |
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 93 of file bsta_adaptive_updater.h.
typedef bsta_num_obs<mix_dist_> bsta_mg_statistical_updater< mix_dist_ >::obs_mix_dist_ |
Reimplemented in bsta_mg_weighted_updater< mix_dist_ >, and bsta_mg_window_updater< mix_dist_ >.
Definition at line 97 of file bsta_adaptive_updater.h.
typedef gaussian_::math_type bsta_mg_statistical_updater< mix_dist_ >::T |
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 95 of file bsta_adaptive_updater.h.
typedef gaussian_::vector_type bsta_mg_statistical_updater< mix_dist_ >::vector_ |
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 96 of file bsta_adaptive_updater.h.
anonymous enum |
Definition at line 102 of file bsta_adaptive_updater.h.
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.
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.
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.
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.
T bsta_mg_statistical_updater< mix_dist_ >::gt2_ |
Squared Gaussian Mahalanobis distance threshold.
Definition at line 124 of file bsta_adaptive_updater.h.
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.
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.
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.