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_mix_any_less_index_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 62 of file bsta_detector_mixture.h.
typedef mixture_ bsta_mix_any_less_index_detector< mixture_, detector_ >::distribution_type |
Definition at line 72 of file bsta_detector_mixture.h.
typedef bool bsta_mix_any_less_index_detector< mixture_, detector_ >::return_T |
Definition at line 65 of file bsta_detector_mixture.h.
typedef return_T bsta_mix_any_less_index_detector< mixture_, detector_ >::return_type |
Definition at line 71 of file bsta_detector_mixture.h.
typedef mixture_::math_type bsta_mix_any_less_index_detector< mixture_, detector_ >::T |
Definition at line 67 of file bsta_detector_mixture.h.
typedef mixture_::vector_type bsta_mix_any_less_index_detector< mixture_, detector_ >::vector_ |
Definition at line 68 of file bsta_detector_mixture.h.
anonymous enum |
Definition at line 66 of file bsta_detector_mixture.h.
bsta_mix_any_less_index_detector< mixture_, detector_ >::bsta_mix_any_less_index_detector | ( | const detector_ & | d, |
const T & | w = T(0.5) |
||
) | [inline] |
Constructor.
Definition at line 75 of file bsta_detector_mixture.h.
bool bsta_mix_any_less_index_detector< mixture_, detector_ >::operator() | ( | const mixture_ & | mix, |
const vector_ & | sample, | ||
bool & | result | ||
) | const [inline] |
The main function.
Definition at line 79 of file bsta_detector_mixture.h.
detector_ bsta_mix_any_less_index_detector< mixture_, detector_ >::detect |
The detector to apply to components.
Definition at line 101 of file bsta_detector_mixture.h.
T bsta_mix_any_less_index_detector< mixture_, detector_ >::weight_thresh |
The index to detect.
Definition at line 103 of file bsta_detector_mixture.h.