This is a simple implementation of a discrete low pass filter to filter noisy signals.
More...
#include <low_pass_filter.h>
|
| LowPassFilter () |
| This is a simple implementation of a discrete low pass filter to filter noisy signals. More...
|
|
| ~LowPassFilter () |
|
void | SetSmoothingFactor (float newSF=1.0f) |
| Set the filter's smoothing factor (alpha) between [0, 1]. More...
|
|
float | Filter (float rawPoint) |
| Apply the LFP (defined by the smoothing factor) to a new point and output the filtered value. More...
|
|
This is a simple implementation of a discrete low pass filter to filter noisy signals.
A low pass filter will let low-frequency signals through and attenuate high-frequency signals (-3dB cutoff).
◆ LowPassFilter()
LowPassFilter::LowPassFilter |
( |
| ) |
|
This is a simple implementation of a discrete low pass filter to filter noisy signals.
A low pass filter will let low-frequency signals through and attenuate high-frequency signals (-3dB cutoff). Constructor for the low pass filter library. Be sure to specify the smoothing factor!
◆ ~LowPassFilter()
LowPassFilter::~LowPassFilter |
( |
| ) |
|
◆ Filter()
float LowPassFilter::Filter |
( |
float |
rawPoint | ) |
|
Apply the LFP (defined by the smoothing factor) to a new point and output the filtered value.
- Parameters
-
rawPoint | Raw data point to filter |
- Returns
- Filtered measurement
◆ SetSmoothingFactor()
void LowPassFilter::SetSmoothingFactor |
( |
float |
newSF = 1.0f | ) |
|
Set the filter's smoothing factor (alpha) between [0, 1].
- Parameters
-
newSF | Filter smoothing factor, [0, 1] |
◆ _a
◆ _outPoint
float LowPassFilter::_outPoint |
|
private |
◆ _setsf
bool LowPassFilter::_setsf |
|
private |
◆ dt
The documentation for this class was generated from the following files: