GestureRecognitionToolkit  Version: 0.2.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
PeakDetection Class Reference

Public Types

enum  PeakTypes {
  NO_PEAK_FOUND =0, LOCAL_MAXIMA_FOUND, LOCAL_MINIMA_FOUND, GLOBAL_MAXIMA_FOUND,
  GLOBAL_MINIMA_FOUND
}
 

Public Member Functions

 PeakDetection (const UINT lowPassFilterSize=5, const UINT searchWindowSize=5)
 
 PeakDetection (const PeakDetection &rhs)
 
PeakDetectionoperator= (const PeakDetection &rhs)
 
bool setSearchWindowSize (const UINT searchWindowSize)
 
bool update (const Float x)
 
bool reset ()
 

Public Attributes

bool enableSearch
 
bool peakDetected
 
unsigned int inputTimeoutCounter
 
unsigned int inputTimeoutLimit
 
unsigned int maximaCounter
 
unsigned int minimaCounter
 
unsigned int lowPassFilterSize
 
unsigned int searchWindowSize
 
unsigned int searchHistorySize
 
Float deadZoneThreshold
 
DoubleMovingAverageFilter lowPassFilter
 
DeadZone deadZoneFilter
 
CircularBuffer< Float > filteredDataBuffer
 
CircularBuffer< Float > firstDerivBuffer
 
CircularBuffer< Float > secondDerivBuffer
 
CircularBuffer< unsigned int > peakTypesBuffer
 
Vector< PeakInfopeakInfo
 
PeakInfo globalMaximaPeakInfo
 
PeakInfo globalMinimaPeakInfo
 

Detailed Description

Definition at line 33 of file PeakDetection.h.


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