A Parzen distribution. More...
#include <bsta_parzen.h>
Public Types | |
typedef bsta_distribution< T, n >::vector_type | vect_t |
typedef vcl_vector< vect_t > | sample_vector |
typedef sample_vector::const_iterator | sv_const_it |
enum | { dimension = n } |
The dimension of the distribution. More... | |
typedef T | math_type |
The type used for calculations. | |
typedef vnl_vector_fixed < math_type, dimension > | vector_type |
The type used for a n-dimensional vector of math types. | |
typedef vector_type | field_type |
for compatibility with vpdl/vpdt. | |
Public Member Functions | |
bsta_parzen () | |
virtual | ~bsta_parzen () |
bsta_parzen (sample_vector const &samples) | |
void | insert_sample (const vect_t &sample) |
Insert a new sample into the distribution. | |
void | insert_samples (const sample_vector &samples) |
Insert a vector of samples. | |
sample_vector | samples () const |
vect_t | sample (unsigned index) const |
bool | remove_sample (unsigned index) |
void | clear () |
clear the sample set. | |
unsigned | size () const |
number of samples. | |
Protected Attributes | |
sample_vector | samples_ |
The samples. |
A Parzen distribution.
used as a component of the mixture
Definition at line 59 of file bsta_parzen.h.
typedef vector_type bsta_distribution< T, n >::field_type [inherited] |
for compatibility with vpdl/vpdt.
Reimplemented in bsta_von_mises< T, n >.
Definition at line 29 of file bsta_distribution.h.
typedef T bsta_distribution< T, n >::math_type [inherited] |
The type used for calculations.
Reimplemented in bsta_von_mises< T, n >.
Definition at line 25 of file bsta_distribution.h.
typedef vcl_vector<vect_t > bsta_parzen< T, n >::sample_vector |
Definition at line 63 of file bsta_parzen.h.
typedef sample_vector::const_iterator bsta_parzen< T, n >::sv_const_it |
Definition at line 64 of file bsta_parzen.h.
typedef bsta_distribution<T,n>::vector_type bsta_parzen< T, n >::vect_t |
Reimplemented in bsta_parzen_sphere< T, 1 >, and bsta_parzen_sphere< T, n >.
Definition at line 62 of file bsta_parzen.h.
typedef vnl_vector_fixed<math_type,dimension> bsta_distribution< T, n >::vector_type [inherited] |
The type used for a n-dimensional vector of math types.
Reimplemented in bsta_von_mises< T, n >.
Definition at line 27 of file bsta_distribution.h.
anonymous enum [inherited] |
The dimension of the distribution.
Definition at line 23 of file bsta_distribution.h.
bsta_parzen< T, n >::bsta_parzen | ( | ) | [inline] |
Definition at line 72 of file bsta_parzen.h.
virtual bsta_parzen< T, n >::~bsta_parzen | ( | ) | [inline, virtual] |
Definition at line 73 of file bsta_parzen.h.
bsta_parzen< T, n >::bsta_parzen | ( | sample_vector const & | samples | ) | [inline] |
Definition at line 75 of file bsta_parzen.h.
void bsta_parzen< T, n >::clear | ( | ) | [inline] |
clear the sample set.
Definition at line 105 of file bsta_parzen.h.
void bsta_parzen< T, n >::insert_sample | ( | const vect_t & | sample | ) | [inline] |
Insert a new sample into the distribution.
Definition at line 79 of file bsta_parzen.h.
void bsta_parzen< T, n >::insert_samples | ( | const sample_vector & | samples | ) | [inline] |
Insert a vector of samples.
Definition at line 83 of file bsta_parzen.h.
bool bsta_parzen< T, n >::remove_sample | ( | unsigned | index | ) | [inline] |
Definition at line 98 of file bsta_parzen.h.
vect_t bsta_parzen< T, n >::sample | ( | unsigned | index | ) | const [inline] |
Definition at line 92 of file bsta_parzen.h.
sample_vector bsta_parzen< T, n >::samples | ( | ) | const [inline] |
Definition at line 89 of file bsta_parzen.h.
unsigned bsta_parzen< T, n >::size | ( | ) | const [inline] |
number of samples.
Definition at line 108 of file bsta_parzen.h.
sample_vector bsta_parzen< T, n >::samples_ [protected] |
The samples.
Definition at line 68 of file bsta_parzen.h.