Compute the weighted sum of functor value while the total weight is below a threshold. More...
#include <bsta_mixture_functors.h>
Public Types | |
| enum | { return_dim = functor_::return_dim } |
| typedef mixture_::math_type | T |
| typedef functor_::return_T | return_T |
| typedef return_T | return_type |
| typedef vnl_vector_fixed< T, mixture_::dimension > | vector_ |
Public Member Functions | |
| bsta_top_weight_functor (const T &w=T(0.5)) | |
| Constructor. | |
| bsta_top_weight_functor (const functor_ &f, const T &w=T(0.5)) | |
| Constructor. | |
| bool | operator() (const mixture_ &mix, const vector_ &sample, return_T &retval) const |
| The main function. | |
Public Attributes | |
| functor_ | functor |
| The functor to apply to components. | |
| T | weight_thresh |
| The index to detect. | |
Compute the weighted sum of functor value while the total weight is below a threshold.
Definition at line 20 of file bsta_mixture_functors.h.
| typedef functor_::return_T bsta_top_weight_functor< mixture_, functor_ >::return_T |
Definition at line 24 of file bsta_mixture_functors.h.
| typedef return_T bsta_top_weight_functor< mixture_, functor_ >::return_type |
Definition at line 25 of file bsta_mixture_functors.h.
| typedef mixture_::math_type bsta_top_weight_functor< mixture_, functor_ >::T |
Definition at line 23 of file bsta_mixture_functors.h.
| typedef vnl_vector_fixed<T,mixture_::dimension> bsta_top_weight_functor< mixture_, functor_ >::vector_ |
Definition at line 26 of file bsta_mixture_functors.h.
| anonymous enum |
Definition at line 27 of file bsta_mixture_functors.h.
| bsta_top_weight_functor< mixture_, functor_ >::bsta_top_weight_functor | ( | const T & | w = T(0.5) | ) | [inline] |
Constructor.
Definition at line 30 of file bsta_mixture_functors.h.
| bsta_top_weight_functor< mixture_, functor_ >::bsta_top_weight_functor | ( | const functor_ & | f, |
| const T & | w = T(0.5) |
||
| ) | [inline] |
Constructor.
Definition at line 32 of file bsta_mixture_functors.h.
| bool bsta_top_weight_functor< mixture_, functor_ >::operator() | ( | const mixture_ & | mix, |
| const vector_ & | sample, | ||
| return_T & | retval | ||
| ) | const [inline] |
The main function.
Definition at line 36 of file bsta_mixture_functors.h.
| functor_ bsta_top_weight_functor< mixture_, functor_ >::functor |
The functor to apply to components.
Definition at line 63 of file bsta_mixture_functors.h.
| T bsta_top_weight_functor< mixture_, functor_ >::weight_thresh |
The index to detect.
Definition at line 65 of file bsta_mixture_functors.h.
1.7.5.1