Public Types | Public Member Functions | Private Attributes
bsta_parzen_adapt_bw_updater< parzen_dist_ > Class Template Reference

A parzen window (kernel) updater. More...

#include <bsta_parzen_updater.h>

List of all members.

Public Types

enum  { data_dimension = parzen_dist_::dimension }
typedef parzen_dist_::math_type T
typedef parzen_dist_::vector_type vector_
typedef parzen_dist_::field_type field_type
 for compatibility with vpdl/vpdt.
typedef parzen_dist_ distribution_type

Public Member Functions

 bsta_parzen_adapt_bw_updater (T tol, unsigned max_samples, T frac_backgnd=T(1))
void operator() (parzen_dist_ &pdist, const vector_ &sample) const
 The update functor.

Private Attributes

T tol_
unsigned max_samples_
T frac_background_

Detailed Description

template<class parzen_dist_>
class bsta_parzen_adapt_bw_updater< parzen_dist_ >

A parzen window (kernel) updater.

If a new sample is within tol of the existing samples then don't insert. Otherwise if maximum number of samples has been reached, then compute a new bandwidth estimate based on the most probable fraction of the existing samples.

Definition at line 57 of file bsta_parzen_updater.h.


Member Typedef Documentation

template<class parzen_dist_>
typedef parzen_dist_ bsta_parzen_adapt_bw_updater< parzen_dist_ >::distribution_type

Definition at line 66 of file bsta_parzen_updater.h.

template<class parzen_dist_>
typedef parzen_dist_::field_type bsta_parzen_adapt_bw_updater< parzen_dist_ >::field_type

for compatibility with vpdl/vpdt.

Definition at line 65 of file bsta_parzen_updater.h.

template<class parzen_dist_>
typedef parzen_dist_::math_type bsta_parzen_adapt_bw_updater< parzen_dist_ >::T

Definition at line 60 of file bsta_parzen_updater.h.

template<class parzen_dist_>
typedef parzen_dist_::vector_type bsta_parzen_adapt_bw_updater< parzen_dist_ >::vector_

Definition at line 61 of file bsta_parzen_updater.h.


Member Enumeration Documentation

template<class parzen_dist_>
anonymous enum
Enumerator:
data_dimension 

Definition at line 62 of file bsta_parzen_updater.h.


Constructor & Destructor Documentation

template<class parzen_dist_>
bsta_parzen_adapt_bw_updater< parzen_dist_ >::bsta_parzen_adapt_bw_updater ( T  tol,
unsigned  max_samples,
T  frac_backgnd = T(1) 
) [inline]

Definition at line 70 of file bsta_parzen_updater.h.


Member Function Documentation

template<class parzen_dist_>
void bsta_parzen_adapt_bw_updater< parzen_dist_ >::operator() ( parzen_dist_ &  pdist,
const vector_ sample 
) const

The update functor.


Member Data Documentation

template<class parzen_dist_>
T bsta_parzen_adapt_bw_updater< parzen_dist_ >::frac_background_ [private]

Definition at line 80 of file bsta_parzen_updater.h.

template<class parzen_dist_>
unsigned bsta_parzen_adapt_bw_updater< parzen_dist_ >::max_samples_ [private]

Definition at line 79 of file bsta_parzen_updater.h.

template<class parzen_dist_>
T bsta_parzen_adapt_bw_updater< parzen_dist_ >::tol_ [private]

Definition at line 78 of file bsta_parzen_updater.h.


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