Low pass filter class to filter the sensors noise.
More...
|
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 float | ALPHA = 0.03f |
| Time smoothing constant for low-pass filter 0 - 1 ; a smaller value basically means more smoothing. More...
|
|
Low pass filter class to filter the sensors noise.
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
-
input | float array to smooth. |
prev | float 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
-
input | float array to smooth. |
prev | float array representing the previous values. |
alpha | Time smoothing constant for low-pass filter 0 - 1 ; a smaller value basically means more smoothing |
- Returns
- float array smoothed with a low-pass filter.
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:
- src/com/beyondar/android/opengl/util/LowPassFilter.java