Public Types | Public Member Functions | Public Attributes
bsta_mix_any_less_index_detector< mixture_, detector_ > Class Template Reference

Apply a detector to each component in order while the total weight is below a threshold. More...

#include <bsta_detector_mixture.h>

List of all members.

Public Types

enum  { return_dim = 1 }
typedef bool return_T
typedef mixture_::math_type T
typedef mixture_::vector_type vector_
typedef return_T return_type
typedef mixture_ distribution_type

Public Member Functions

 bsta_mix_any_less_index_detector (const detector_ &d, const T &w=T(0.5))
 Constructor.
bool operator() (const mixture_ &mix, const vector_ &sample, bool &result) const
 The main function.

Public Attributes

detector_ detect
 The detector to apply to components.
T weight_thresh
 The index to detect.

Detailed Description

template<class mixture_, class detector_>
class bsta_mix_any_less_index_detector< mixture_, detector_ >

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 62 of file bsta_detector_mixture.h.


Member Typedef Documentation

template<class mixture_ , class detector_ >
typedef mixture_ bsta_mix_any_less_index_detector< mixture_, detector_ >::distribution_type

Definition at line 72 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
typedef bool bsta_mix_any_less_index_detector< mixture_, detector_ >::return_T

Definition at line 65 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
typedef return_T bsta_mix_any_less_index_detector< mixture_, detector_ >::return_type

Definition at line 71 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
typedef mixture_::math_type bsta_mix_any_less_index_detector< mixture_, detector_ >::T

Definition at line 67 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
typedef mixture_::vector_type bsta_mix_any_less_index_detector< mixture_, detector_ >::vector_

Definition at line 68 of file bsta_detector_mixture.h.


Member Enumeration Documentation

template<class mixture_ , class detector_ >
anonymous enum
Enumerator:
return_dim 

Definition at line 66 of file bsta_detector_mixture.h.


Constructor & Destructor Documentation

template<class mixture_ , class detector_ >
bsta_mix_any_less_index_detector< mixture_, detector_ >::bsta_mix_any_less_index_detector ( const detector_ &  d,
const T w = T(0.5) 
) [inline]

Constructor.

Definition at line 75 of file bsta_detector_mixture.h.


Member Function Documentation

template<class mixture_ , class detector_ >
bool bsta_mix_any_less_index_detector< mixture_, detector_ >::operator() ( const mixture_ &  mix,
const vector_ sample,
bool &  result 
) const [inline]

The main function.

Definition at line 79 of file bsta_detector_mixture.h.


Member Data Documentation

template<class mixture_ , class detector_ >
detector_ bsta_mix_any_less_index_detector< mixture_, detector_ >::detect

The detector to apply to components.

Definition at line 101 of file bsta_detector_mixture.h.

template<class mixture_ , class detector_ >
T bsta_mix_any_less_index_detector< mixture_, detector_ >::weight_thresh

The index to detect.

Definition at line 103 of file bsta_detector_mixture.h.


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