Apply a detector to each component in order while the total weight is below a threshold. More...
#include <vpdt_mixture_detector.h>
Public Types | |
| typedef bool | return_type |
| the functor return type. More... | |
| typedef mixture_type | distribution_type |
| the distribution operated on by the detector. More... | |
| typedef mixture_type::field_type | F |
| the data type to represent a point in the field. More... | |
| typedef vpdt_field_traits< F >::scalar_type | T |
| define the scalar type (normally specified by template parameter T). More... | |
Public Member Functions | |
| vpdt_mixture_top_weight_detector (const detector_type &d, const T &w=T(0.5)) | |
| Constructor. More... | |
| bool | operator() (const mixture_type &mix, const F &sample, bool &result) const |
| The main function. More... | |
Public Attributes | |
| detector_type | detect |
| The detector to apply to components. More... | |
| T | weight_thresh |
| The total weight threshold. More... | |
Static Public Attributes | |
| static const unsigned int | return_dim = 1 |
| the functor return type. More... | |
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 98 of file vpdt_mixture_detector.h.
| typedef mixture_type vpdt_mixture_top_weight_detector< mixture_type, detector_type >::distribution_type |
the distribution operated on by the detector.
Definition at line 106 of file vpdt_mixture_detector.h.
| typedef mixture_type::field_type vpdt_mixture_top_weight_detector< mixture_type, detector_type >::F |
the data type to represent a point in the field.
Definition at line 109 of file vpdt_mixture_detector.h.
| typedef bool vpdt_mixture_top_weight_detector< mixture_type, detector_type >::return_type |
the functor return type.
Definition at line 102 of file vpdt_mixture_detector.h.
| typedef vpdt_field_traits<F>::scalar_type vpdt_mixture_top_weight_detector< mixture_type, detector_type >::T |
define the scalar type (normally specified by template parameter T).
Definition at line 111 of file vpdt_mixture_detector.h.
|
inline |
Constructor.
Definition at line 114 of file vpdt_mixture_detector.h.
|
inline |
The main function.
Definition at line 118 of file vpdt_mixture_detector.h.
| detector_type vpdt_mixture_top_weight_detector< mixture_type, detector_type >::detect |
The detector to apply to components.
Definition at line 135 of file vpdt_mixture_detector.h.
|
static |
the functor return type.
Definition at line 104 of file vpdt_mixture_detector.h.
| T vpdt_mixture_top_weight_detector< mixture_type, detector_type >::weight_thresh |
The total weight threshold.
Definition at line 137 of file vpdt_mixture_detector.h.
1.8.15