A simple Mahalanobis distance detector for a Gaussian. More...
#include <bsta_detector_gaussian.h>
Public Types | |
enum | { return_dim = 1 } |
typedef bool | return_T |
typedef gaussian_::math_type | T |
typedef gaussian_::vector_type | vector_ |
typedef return_T | return_type |
typedef gaussian_ | distribution_type |
Public Member Functions | |
bsta_g_mdist_detector (const T &thresh=T(2.5)) | |
Constructor. | |
bool | operator() (const gaussian_ &g, const vector_ &sample, bool &result) const |
The main function. | |
Public Attributes | |
T | sqr_threshold |
the threshold on Mahalanobis distance. |
A simple Mahalanobis distance detector for a Gaussian.
Detects samples that lie within some Mahalanobis distance
Definition at line 18 of file bsta_detector_gaussian.h.
typedef gaussian_ bsta_g_mdist_detector< gaussian_ >::distribution_type |
Definition at line 28 of file bsta_detector_gaussian.h.
typedef bool bsta_g_mdist_detector< gaussian_ >::return_T |
Definition at line 21 of file bsta_detector_gaussian.h.
typedef return_T bsta_g_mdist_detector< gaussian_ >::return_type |
Definition at line 27 of file bsta_detector_gaussian.h.
typedef gaussian_::math_type bsta_g_mdist_detector< gaussian_ >::T |
Definition at line 23 of file bsta_detector_gaussian.h.
typedef gaussian_::vector_type bsta_g_mdist_detector< gaussian_ >::vector_ |
Definition at line 24 of file bsta_detector_gaussian.h.
anonymous enum |
Definition at line 22 of file bsta_detector_gaussian.h.
bsta_g_mdist_detector< gaussian_ >::bsta_g_mdist_detector | ( | const T & | thresh = T(2.5) | ) | [inline] |
Constructor.
Definition at line 31 of file bsta_detector_gaussian.h.
bool bsta_g_mdist_detector< gaussian_ >::operator() | ( | const gaussian_ & | g, |
const vector_ & | sample, | ||
bool & | result | ||
) | const [inline] |
The main function.
true | if the Mahalanobis distance is less than the threshold |
Definition at line 35 of file bsta_detector_gaussian.h.
T bsta_g_mdist_detector< gaussian_ >::sqr_threshold |
the threshold on Mahalanobis distance.
Definition at line 42 of file bsta_detector_gaussian.h.