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

#include <bsta_beta_updater.h>

List of all members.

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_

Detailed Description

template<class mix_dist_>
class bsta_mix_beta_updater< mix_dist_ >

Definition at line 128 of file bsta_beta_updater.h.


Member Typedef Documentation

template<class mix_dist_ >
typedef obs_dist_::contained_type bsta_mix_beta_updater< mix_dist_ >::dist_ [private]

Definition at line 131 of file bsta_beta_updater.h.

template<class mix_dist_ >
typedef mix_dist_ bsta_mix_beta_updater< mix_dist_ >::distribution_type

Definition at line 143 of file bsta_beta_updater.h.

template<class mix_dist_ >
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.

template<class mix_dist_ >
typedef mix_dist_::dist_type bsta_mix_beta_updater< mix_dist_ >::obs_dist_ [private]

Definition at line 130 of file bsta_beta_updater.h.

template<class mix_dist_ >
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.

template<class mix_dist_ >
typedef dist_::math_type bsta_mix_beta_updater< mix_dist_ >::T [private]

Definition at line 132 of file bsta_beta_updater.h.

template<class mix_dist_ >
typedef dist_::vector_type bsta_mix_beta_updater< mix_dist_ >::vector_ [private]

Definition at line 133 of file bsta_beta_updater.h.


Constructor & Destructor Documentation

template<class mix_dist_ >
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.


Member Function Documentation

template<class mix_dist_ >
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.

template<class mix_dist_ >
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.

template<class mix_dist_ >
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.


Member Data Documentation

template<class mix_dist_ >
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.

template<class mix_dist_ >
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.

template<class mix_dist_ >
T bsta_mix_beta_updater< mix_dist_ >::p_thresh_ [protected]

probability threshold.

Definition at line 202 of file bsta_beta_updater.h.

template<class mix_dist_ >
T bsta_mix_beta_updater< mix_dist_ >::var_ [protected]

Definition at line 203 of file bsta_beta_updater.h.


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