Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.opengl.util.LowPassFilter Class Reference

Low pass filter class to filter the sensors noise. More...

Static Public Member Functions

static float[] filter (float[] input, float[] prev)
 Filter the given input against the previous values and return a low-pass filtered result. More...
 
static float[] filter (float[] input, float[] prev, float alpha)
 Filter the given input against the previous values and return a low-pass filtered result. More...
 

Static Public Attributes

static float ALPHA = 0.03f
 Time smoothing constant for low-pass filter 0 - 1 ; a smaller value basically means more smoothing. More...
 

Detailed Description

Low pass filter class to filter the sensors noise.

Member Function Documentation

static float [] com.beyondar.android.opengl.util.LowPassFilter.filter ( float[]  input,
float[]  prev 
)
static

Filter the given input against the previous values and return a low-pass filtered result.

Parameters
inputfloat array to smooth.
prevfloat array representing the previous values.
Returns
float array smoothed with a low-pass filter.
static float [] com.beyondar.android.opengl.util.LowPassFilter.filter ( float[]  input,
float[]  prev,
float  alpha 
)
static

Filter the given input against the previous values and return a low-pass filtered result.

Parameters
inputfloat array to smooth.
prevfloat array representing the previous values.
alphaTime smoothing constant for low-pass filter 0 - 1 ; a smaller value basically means more smoothing
Returns
float array smoothed with a low-pass filter.

Member Data Documentation

float com.beyondar.android.opengl.util.LowPassFilter.ALPHA = 0.03f
static

Time smoothing constant for low-pass filter 0 - 1 ; a smaller value basically means more smoothing.

See Also
Discrete time relization

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