ManoMotion Unity SDK 2.0
SDK documentation
Loading...
Searching...
No Matches
OneEuroFilter< T > Class Template Reference

One Euro Filter implementation to reduce jittering Credit: Dario Mazzanti https://github.com/DarioMazzanti/OneEuroFilterUnity.

Public Member Functions

 OneEuroFilter (float _freq, float _mincutoff=1.0f, float _beta=0.0f, float _dcutoff=1.0f)
 
 OneEuroFilter (OneEuroFilterSetting setting)
 
void UpdateParams (float _freq, float _mincutoff, float _beta, float _dcutoff)
 
float Filter (float value, float timestamp=-1.0f)
 
 OneEuroFilter (float _freq, float _mincutoff=1.0f, float _beta=0.0f, float _dcutoff=1.0f)
 
 OneEuroFilter (OneEuroFilterSetting setting)
 
void UpdateParams (float _freq, float _mincutoff=1.0f, float _beta=0.007f, float _dcutoff=1.0f)
 
void UpdateParams (OneEuroFilterSetting setting)
 
Filter< U > (U _value, float timestamp=-1.0f)
 

Properties

float currValue [get, protected set]
 
float prevValue [get, protected set]
 
currValue [get, protected set]
 
prevValue [get, protected set]
 

Private Member Functions

float alpha (float _cutoff)
 
void setFrequency (float _f)
 
void setMinCutoff (float _mc)
 
void setBeta (float _b)
 
void setDerivateCutoff (float _dc)
 

Private Attributes

float freq
 
float mincutoff
 
float beta
 
float dcutoff
 
LowPassFilter x
 
LowPassFilter dx
 
float lasttime
 
Type type
 
OneEuroFilter[] oneEuroFilters
 

Constructor & Destructor Documentation

◆ OneEuroFilter() [1/4]

OneEuroFilter< T >.OneEuroFilter ( float _freq,
float _mincutoff = 1::0f,
float _beta = 0::0f,
float _dcutoff = 1::0f )
inline

◆ OneEuroFilter() [2/4]

◆ OneEuroFilter() [3/4]

OneEuroFilter< T >.OneEuroFilter ( float _freq,
float _mincutoff = 1::0f,
float _beta = 0::0f,
float _dcutoff = 1::0f )
inline

◆ OneEuroFilter() [4/4]

Member Function Documentation

◆ alpha()

float OneEuroFilter< T >.alpha ( float _cutoff)
inlineprivate

◆ Filter()

float OneEuroFilter< T >.Filter ( float value,
float timestamp = -1::0f )
inline

◆ Filter< U >()

T OneEuroFilter< T >.Filter< U > ( U _value,
float timestamp = -1::0f )
inline
Type Constraints
U :struct 

◆ setBeta()

void OneEuroFilter< T >.setBeta ( float _b)
inlineprivate

◆ setDerivateCutoff()

void OneEuroFilter< T >.setDerivateCutoff ( float _dc)
inlineprivate

◆ setFrequency()

void OneEuroFilter< T >.setFrequency ( float _f)
inlineprivate

◆ setMinCutoff()

void OneEuroFilter< T >.setMinCutoff ( float _mc)
inlineprivate

◆ UpdateParams() [1/3]

void OneEuroFilter< T >.UpdateParams ( float _freq,
float _mincutoff,
float _beta,
float _dcutoff )
inline

◆ UpdateParams() [2/3]

void OneEuroFilter< T >.UpdateParams ( float _freq,
float _mincutoff = 1::0f,
float _beta = 0::007f,
float _dcutoff = 1::0f )
inline

◆ UpdateParams() [3/3]

void OneEuroFilter< T >.UpdateParams ( OneEuroFilterSetting setting)
inline

Member Data Documentation

◆ beta

float OneEuroFilter< T >.beta
getprotected setprivate

◆ dcutoff

float OneEuroFilter< T >.dcutoff
getprotected setprivate

◆ dx

LowPassFilter OneEuroFilter< T >.dx
private

◆ freq

float OneEuroFilter< T >.freq
getprotected setprivate

◆ lasttime

float OneEuroFilter< T >.lasttime
private

◆ mincutoff

float OneEuroFilter< T >.mincutoff
getprotected setprivate

◆ oneEuroFilters

OneEuroFilter [] OneEuroFilter< T >.oneEuroFilters
private

◆ type

Type OneEuroFilter< T >.type
private

◆ x

LowPassFilter OneEuroFilter< T >.x
private

Property Documentation

◆ currValue [1/2]

float OneEuroFilter< T >.currValue
getprotected set

◆ currValue [2/2]

T OneEuroFilter< T >.currValue
getprotected set

◆ prevValue [1/2]

float OneEuroFilter< T >.prevValue
getprotected set

◆ prevValue [2/2]

T OneEuroFilter< T >.prevValue
getprotected set