#include <bsta_beta_updater.h>
Public Types | |
typedef dist_::field_type | field_type |
for compatibility with vpdl/vpdt. | |
typedef mix_dist_ | distribution_type |
Public Member Functions | |
bsta_mix_beta_updater (const dist_ &model, T thresh, T var, unsigned int max_cmp=5) | |
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. | |
Protected Member Functions | |
void | insert (mix_dist_ &mixture, const vector_ &sample, T init_weight) const |
insert a sample in the mixture. | |
Protected Attributes | |
obs_dist_ | init_dist_ |
A model for new beta inserted. | |
unsigned int | max_components_ |
The maximum number of components in the mixture. | |
T | p_thresh_ |
probability threshold. | |
T | var_ |
Private Types | |
typedef mix_dist_::dist_type | obs_dist_ |
typedef obs_dist_::contained_type | dist_ |
typedef dist_::math_type | T |
typedef dist_::vector_type | vector_ |
typedef bsta_num_obs< mix_dist_ > | obs_mix_dist_ |
Definition at line 128 of file bsta_beta_updater.h.
typedef obs_dist_::contained_type bsta_mix_beta_updater< mix_dist_ >::dist_ [private] |
Definition at line 131 of file bsta_beta_updater.h.
typedef mix_dist_ bsta_mix_beta_updater< mix_dist_ >::distribution_type |
Definition at line 143 of file bsta_beta_updater.h.
typedef dist_::field_type bsta_mix_beta_updater< mix_dist_ >::field_type |
for compatibility with vpdl/vpdt.
Definition at line 142 of file bsta_beta_updater.h.
typedef mix_dist_::dist_type bsta_mix_beta_updater< mix_dist_ >::obs_dist_ [private] |
Definition at line 130 of file bsta_beta_updater.h.
typedef bsta_num_obs<mix_dist_> bsta_mix_beta_updater< mix_dist_ >::obs_mix_dist_ [private] |
Definition at line 134 of file bsta_beta_updater.h.
typedef dist_::math_type bsta_mix_beta_updater< mix_dist_ >::T [private] |
Definition at line 132 of file bsta_beta_updater.h.
typedef dist_::vector_type bsta_mix_beta_updater< mix_dist_ >::vector_ [private] |
Definition at line 133 of file bsta_beta_updater.h.
bsta_mix_beta_updater< mix_dist_ >::bsta_mix_beta_updater | ( | const dist_ & | model, |
T | thresh, | ||
T | var, | ||
unsigned int | max_cmp = 5 |
||
) | [inline] |
Constructor.
Definition at line 138 of file bsta_beta_updater.h.
void bsta_mix_beta_updater< mix_dist_ >::insert | ( | mix_dist_ & | mixture, |
const vector_ & | sample, | ||
T | init_weight | ||
) | const [inline, protected] |
insert a sample in the mixture.
Definition at line 157 of file bsta_beta_updater.h.
void bsta_mix_beta_updater< mix_dist_ >::operator() | ( | obs_mix_dist_ & | mix, |
const vector_ & | sample | ||
) | const [inline] |
The main function.
Definition at line 146 of file bsta_beta_updater.h.
void bsta_mix_beta_updater< mix_dist_ >::update | ( | mix_dist_ & | mix, |
const vector_ & | sample, | ||
T | alpha | ||
) | const |
The update function.
Definition at line 12 of file bsta_beta_updater.txx.
obs_dist_ bsta_mix_beta_updater< mix_dist_ >::init_dist_ [mutable, protected] |
A model for new beta inserted.
Definition at line 198 of file bsta_beta_updater.h.
unsigned int bsta_mix_beta_updater< mix_dist_ >::max_components_ [protected] |
The maximum number of components in the mixture.
Definition at line 200 of file bsta_beta_updater.h.
T bsta_mix_beta_updater< mix_dist_ >::p_thresh_ [protected] |
probability threshold.
Definition at line 202 of file bsta_beta_updater.h.
T bsta_mix_beta_updater< mix_dist_ >::var_ [protected] |
Definition at line 203 of file bsta_beta_updater.h.