#include <LeapUtil.h>
Public Types | |
enum | { kHistoryLength = _HistoryLength } |
Public Member Functions | |
float | AddSample (float fSample) |
float | GetAverage () const |
uint32_t | GetNumSamples () const |
float | GetSum () const |
float | operator[] (uint32_t uiIdx) const |
index 0 is the oldest sample, index kHistorySize - 1 is the newest. More... | |
void | Reset () |
RollingAverage () | |
Private Attributes | |
float | m_afSamples [kHistoryLength] |
float | m_fAverage |
float | m_fNumSamples |
float | m_fSum |
uint32_t | m_uiCurIndex |
Definition at line 215 of file LeapUtil.h.
anonymous enum |
Enumerator | |
---|---|
kHistoryLength |
Definition at line 218 of file LeapUtil.h.
|
inline |
Definition at line 224 of file LeapUtil.h.
|
inline |
Definition at line 235 of file LeapUtil.h.
|
inline |
Definition at line 249 of file LeapUtil.h.
|
inline |
Definition at line 251 of file LeapUtil.h.
|
inline |
Definition at line 250 of file LeapUtil.h.
|
inline |
index 0 is the oldest sample, index kHistorySize - 1 is the newest.
Definition at line 254 of file LeapUtil.h.
|
inline |
Definition at line 226 of file LeapUtil.h.
|
private |
Definition at line 261 of file LeapUtil.h.
|
private |
Definition at line 260 of file LeapUtil.h.
|
private |
Definition at line 258 of file LeapUtil.h.
|
private |
Definition at line 259 of file LeapUtil.h.
|
private |
Definition at line 257 of file LeapUtil.h.