![]() |
GNSS-SDR
0.0.19
An Open Source GNSS Software Defined Receiver
|
Class that implements a first-order exponential smoother. More...
#include <exponential_smoother.h>
Public Member Functions | |
| Exponential_Smoother () | |
| Constructor. More... | |
| ~Exponential_Smoother ()=default | |
| Destructor. More... | |
| Exponential_Smoother (Exponential_Smoother &&)=default | |
| Move operator. More... | |
| Exponential_Smoother & | operator= (Exponential_Smoother &&)=default |
| Move assignment operator. More... | |
| void | set_alpha (float alpha) |
| 0 < alpha < 1. The higher, the most responsive, but more variance. Default value: 0.001 More... | |
| void | set_samples_for_initialization (int num_samples) |
| Number of samples averaged for initialization. Default value: 200. More... | |
| void | reset () |
| void | set_min_value (float value) |
| void | set_offset (float offset) |
| float | smooth (float raw) |
| double | smooth (double raw) |
Class that implements a first-order exponential smoother.
smoothed_value[k] = alpha * raw + (1-alpha) * smoothed_value[k-1]
The length of the initialization can be controlled with set_samples_for_initialization(int num_samples)
Definition at line 39 of file exponential_smoother.h.
| Exponential_Smoother::Exponential_Smoother | ( | ) |
Constructor.
|
default |
Destructor.
|
default |
Move operator.
|
default |
Move assignment operator.
| void Exponential_Smoother::set_alpha | ( | float | alpha | ) |
0 < alpha < 1. The higher, the most responsive, but more variance. Default value: 0.001
| void Exponential_Smoother::set_samples_for_initialization | ( | int | num_samples | ) |
Number of samples averaged for initialization. Default value: 200.
1.8.14