Public Types | Public Member Functions | Public Attributes
bsta_top_weight_detector< mixture_, detector_ > Class Template Reference

Apply a detector to each component in order while the total weight is below a threshold. More...

#include <bsta_detector_mixture.h>

List of all members.

Public Types

enum  { return_dim = 1 }
typedef bool return_T
typedef mixture_::math_type T
typedef mixture_::vector_type vector_
typedef return_T return_type
typedef mixture_ distribution_type

Public Member Functions

 bsta_top_weight_detector (const detector_ &d, const T &w=T(0.5))
 Constructor.
bool operator() (const mixture_ &mix, const vector_ &sample, bool &result) const
 The main function.

Public Attributes

detector_ detect
 The detector to apply to components.
T weight_thresh
 The index to detect.

Detailed Description

template<class mixture_, class detector_>
class bsta_top_weight_detector< mixture_, detector_ >

Apply a detector to each component in order while the total weight is below a threshold.

Return true if any tested component matches

Definition at line 19 of file bsta_detector_mixture.h.


Member Typedef Documentation

template<class mixture_ , class detector_ >
typedef mixture_ bsta_top_weight_detector< mixture_, detector_ >::distribution_type

Definition at line 29 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
typedef bool bsta_top_weight_detector< mixture_, detector_ >::return_T

Definition at line 22 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
typedef return_T bsta_top_weight_detector< mixture_, detector_ >::return_type

Definition at line 28 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
typedef mixture_::math_type bsta_top_weight_detector< mixture_, detector_ >::T

Definition at line 24 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
typedef mixture_::vector_type bsta_top_weight_detector< mixture_, detector_ >::vector_

Definition at line 25 of file bsta_detector_mixture.h.


Member Enumeration Documentation

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

Definition at line 23 of file bsta_detector_mixture.h.


Constructor & Destructor Documentation

template<class mixture_ , class detector_ >
bsta_top_weight_detector< mixture_, detector_ >::bsta_top_weight_detector ( const detector_ &  d,
const T w = T(0.5) 
) [inline]

Constructor.

Definition at line 32 of file bsta_detector_mixture.h.


Member Function Documentation

template<class mixture_ , class detector_ >
bool bsta_top_weight_detector< mixture_, detector_ >::operator() ( const mixture_ &  mix,
const vector_ sample,
bool &  result 
) const [inline]

The main function.

Definition at line 36 of file bsta_detector_mixture.h.


Member Data Documentation

template<class mixture_ , class detector_ >
detector_ bsta_top_weight_detector< mixture_, detector_ >::detect

The detector to apply to components.

Definition at line 53 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
T bsta_top_weight_detector< mixture_, detector_ >::weight_thresh

The index to detect.

Definition at line 55 of file bsta_detector_mixture.h.


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