Public Types | Public Member Functions | Public Attributes
bsta_top_weight_functor< mixture_, functor_ > Class Template Reference

Compute the weighted sum of functor value while the total weight is below a threshold. More...

#include <bsta_mixture_functors.h>

List of all members.

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.

Detailed Description

template<class mixture_, class functor_>
class bsta_top_weight_functor< mixture_, functor_ >

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.


Member Typedef Documentation

template<class mixture_ , class functor_ >
typedef functor_::return_T bsta_top_weight_functor< mixture_, functor_ >::return_T

Definition at line 24 of file bsta_mixture_functors.h.

template<class mixture_ , class functor_ >
typedef return_T bsta_top_weight_functor< mixture_, functor_ >::return_type

Definition at line 25 of file bsta_mixture_functors.h.

template<class mixture_ , class functor_ >
typedef mixture_::math_type bsta_top_weight_functor< mixture_, functor_ >::T

Definition at line 23 of file bsta_mixture_functors.h.

template<class mixture_ , class functor_ >
typedef vnl_vector_fixed<T,mixture_::dimension> bsta_top_weight_functor< mixture_, functor_ >::vector_

Definition at line 26 of file bsta_mixture_functors.h.


Member Enumeration Documentation

template<class mixture_ , class functor_ >
anonymous enum
Enumerator:
return_dim 

Definition at line 27 of file bsta_mixture_functors.h.


Constructor & Destructor Documentation

template<class mixture_ , class functor_ >
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.

template<class mixture_ , class functor_ >
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.


Member Function Documentation

template<class mixture_ , class functor_ >
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.


Member Data Documentation

template<class mixture_ , class functor_ >
functor_ bsta_top_weight_functor< mixture_, functor_ >::functor

The functor to apply to components.

Definition at line 63 of file bsta_mixture_functors.h.

template<class mixture_ , class functor_ >
T bsta_top_weight_functor< mixture_, functor_ >::weight_thresh

The index to detect.

Definition at line 65 of file bsta_mixture_functors.h.


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