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