Public Types | Public Member Functions | Public Attributes
bsta_g_mdist_detector< gaussian_ > Class Template Reference

A simple Mahalanobis distance detector for a Gaussian. More...

#include <bsta_detector_gaussian.h>

List of all members.

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.

Detailed Description

template<class gaussian_>
class bsta_g_mdist_detector< gaussian_ >

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.


Member Typedef Documentation

template<class gaussian_ >
typedef gaussian_ bsta_g_mdist_detector< gaussian_ >::distribution_type

Definition at line 28 of file bsta_detector_gaussian.h.

template<class gaussian_ >
typedef bool bsta_g_mdist_detector< gaussian_ >::return_T

Definition at line 21 of file bsta_detector_gaussian.h.

template<class gaussian_ >
typedef return_T bsta_g_mdist_detector< gaussian_ >::return_type

Definition at line 27 of file bsta_detector_gaussian.h.

template<class gaussian_ >
typedef gaussian_::math_type bsta_g_mdist_detector< gaussian_ >::T

Definition at line 23 of file bsta_detector_gaussian.h.

template<class gaussian_ >
typedef gaussian_::vector_type bsta_g_mdist_detector< gaussian_ >::vector_

Definition at line 24 of file bsta_detector_gaussian.h.


Member Enumeration Documentation

template<class gaussian_ >
anonymous enum
Enumerator:
return_dim 

Definition at line 22 of file bsta_detector_gaussian.h.


Constructor & Destructor Documentation

template<class gaussian_ >
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.


Member Function Documentation

template<class gaussian_ >
bool bsta_g_mdist_detector< gaussian_ >::operator() ( const gaussian_ &  g,
const vector_ sample,
bool &  result 
) const [inline]

The main function.

Return values:
trueif the Mahalanobis distance is less than the threshold

Definition at line 35 of file bsta_detector_gaussian.h.


Member Data Documentation

template<class gaussian_ >
T bsta_g_mdist_detector< gaussian_ >::sqr_threshold

the threshold on Mahalanobis distance.

Definition at line 42 of file bsta_detector_gaussian.h.


The documentation for this class was generated from the following file: