Public Member Functions | Private Types
bsta_mixture_weight_by_obs_updater< comp_dist_ > Class Template Reference

An updater that normalizes weights of a mixture based on number of observations. More...

#include <bsta_gaussian_stats.h>

List of all members.

Public Member Functions

void operator() (mix_dist_ &mix) const
 The main function.

Private Types

typedef bsta_num_obs< comp_dist_ > comp_obs_dist_
typedef bsta_mixture
< comp_obs_dist_
mix_dist_
typedef comp_dist_::math_type T

Detailed Description

template<class comp_dist_>
class bsta_mixture_weight_by_obs_updater< comp_dist_ >

An updater that normalizes weights of a mixture based on number of observations.

Each components is weighted as num_observation / total_observations The original weights are ignored

Definition at line 26 of file bsta_gaussian_stats.h.


Member Typedef Documentation

template<class comp_dist_ >
typedef bsta_num_obs<comp_dist_> bsta_mixture_weight_by_obs_updater< comp_dist_ >::comp_obs_dist_ [private]

Definition at line 29 of file bsta_gaussian_stats.h.

template<class comp_dist_ >
typedef bsta_mixture<comp_obs_dist_> bsta_mixture_weight_by_obs_updater< comp_dist_ >::mix_dist_ [private]

Definition at line 30 of file bsta_gaussian_stats.h.

template<class comp_dist_ >
typedef comp_dist_::math_type bsta_mixture_weight_by_obs_updater< comp_dist_ >::T [private]

Definition at line 31 of file bsta_gaussian_stats.h.


Member Function Documentation

template<class comp_dist_ >
void bsta_mixture_weight_by_obs_updater< comp_dist_ >::operator() ( mix_dist_ mix) const [inline]

The main function.

Definition at line 35 of file bsta_gaussian_stats.h.


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