Apply a detector to each component in order while the total weight is below a threshold. More...
#include <bsta_detector_mixture.h>
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. |
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.
typedef mixture_ bsta_top_weight_detector< mixture_, detector_ >::distribution_type |
Definition at line 29 of file bsta_detector_mixture.h.
typedef bool bsta_top_weight_detector< mixture_, detector_ >::return_T |
Definition at line 22 of file bsta_detector_mixture.h.
typedef return_T bsta_top_weight_detector< mixture_, detector_ >::return_type |
Definition at line 28 of file bsta_detector_mixture.h.
typedef mixture_::math_type bsta_top_weight_detector< mixture_, detector_ >::T |
Definition at line 24 of file bsta_detector_mixture.h.
typedef mixture_::vector_type bsta_top_weight_detector< mixture_, detector_ >::vector_ |
Definition at line 25 of file bsta_detector_mixture.h.
anonymous enum |
Definition at line 23 of file bsta_detector_mixture.h.
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.
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.
detector_ bsta_top_weight_detector< mixture_, detector_ >::detect |
The detector to apply to components.
Definition at line 53 of file bsta_detector_mixture.h.
T bsta_top_weight_detector< mixture_, detector_ >::weight_thresh |
The index to detect.
Definition at line 55 of file bsta_detector_mixture.h.