ManoMotion Unity SDK 2.0
SDK documentation
Loading...
Searching...
No Matches
LowPassFilter Class Reference

Public Member Functions

void setAlpha (float _alpha)
 
 LowPassFilter (float _alpha, float _initval=0.0f)
 
float Filter (float _value)
 
float filterWithAlpha (float _value, float _alpha)
 
bool hasLastRawValue ()
 
float lastRawValue ()
 

Private Attributes

float y
 
float a
 
float s
 
bool initialized
 

Constructor & Destructor Documentation

◆ LowPassFilter()

LowPassFilter.LowPassFilter ( float _alpha,
float _initval = 0::0f )
inline

Member Function Documentation

◆ Filter()

float LowPassFilter.Filter ( float _value)
inline

◆ filterWithAlpha()

float LowPassFilter.filterWithAlpha ( float _value,
float _alpha )
inline

◆ hasLastRawValue()

bool LowPassFilter.hasLastRawValue ( )
inline

◆ lastRawValue()

float LowPassFilter.lastRawValue ( )
inline

◆ setAlpha()

void LowPassFilter.setAlpha ( float _alpha)
inline

Member Data Documentation

◆ a

float LowPassFilter.a
private

◆ initialized

bool LowPassFilter.initialized
private

◆ s

float LowPassFilter.s
private

◆ y

float LowPassFilter.y
private