A simple Mahalanobis distance detector for a Gaussian. More...
#include <vpdt_gaussian_detector.h>
Public Types | |
| typedef bool | return_type |
| the functor return type. More... | |
| typedef gaussian_type | distribution_type |
| the distribution operated on by the detector. More... | |
| typedef gaussian_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_gaussian_mthresh_detector (const T &thresh=T(2.5)) | |
| Constructor. More... | |
| bool | operator() (const gaussian_type &g, const F &sample, bool &result) const |
| The main function. More... | |
Public Attributes | |
| T | sqr_threshold |
| the threshold on Mahalanobis distance. More... | |
Static Public Attributes | |
| static const unsigned int | return_dim = 1 |
| the functor return type. More... | |
A simple Mahalanobis distance detector for a Gaussian.
Detects samples that lie within some Mahalanobis distance
Definition at line 20 of file vpdt_gaussian_detector.h.
| typedef gaussian_type vpdt_gaussian_mthresh_detector< gaussian_type >::distribution_type |
the distribution operated on by the detector.
Definition at line 28 of file vpdt_gaussian_detector.h.
| typedef gaussian_type::field_type vpdt_gaussian_mthresh_detector< gaussian_type >::F |
the data type to represent a point in the field.
Definition at line 31 of file vpdt_gaussian_detector.h.
| typedef bool vpdt_gaussian_mthresh_detector< gaussian_type >::return_type |
the functor return type.
Definition at line 24 of file vpdt_gaussian_detector.h.
| typedef vpdt_field_traits<F>::scalar_type vpdt_gaussian_mthresh_detector< gaussian_type >::T |
define the scalar type (normally specified by template parameter T).
Definition at line 33 of file vpdt_gaussian_detector.h.
|
inline |
Constructor.
Definition at line 36 of file vpdt_gaussian_detector.h.
|
inline |
The main function.
| true | if the Mahalanobis distance is less than the threshold |
Definition at line 41 of file vpdt_gaussian_detector.h.
|
static |
the functor return type.
Definition at line 26 of file vpdt_gaussian_detector.h.
| T vpdt_gaussian_mthresh_detector< gaussian_type >::sqr_threshold |
the threshold on Mahalanobis distance.
Definition at line 48 of file vpdt_gaussian_detector.h.
1.8.15