SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <agc.h>
Public Member Functions | |
AGC (int historySize, double R) | |
virtual | ~AGC () |
void | resize (int historySize, double R) |
void | setOrder (double R) |
Real | getValue () |
Real | getAverage () |
virtual void | feed (Complex &ci)=0 |
Protected Attributes | |
double | m_u0 |
AGC factor. More... | |
double | m_R |
ordered magnitude More... | |
MovingAverage< double > | m_moving_average |
Averaging engine. The stack length conditions the smoothness of AGC. More... | |
int | m_historySize |
Averaging length (attack) More... | |
int | m_count |
Samples counter. More... | |
AGC::AGC | ( | int | historySize, |
double | R | ||
) |
|
pure virtual |
Implemented in MagAGC.
Referenced by MagAGC::setSquared().
Real AGC::getAverage | ( | ) |
Definition at line 37 of file agc.cpp.
References MovingAverage< Type >::average(), and m_moving_average.
Real AGC::getValue | ( | ) |
void AGC::resize | ( | int | historySize, |
double | R | ||
) |
Definition at line 24 of file agc.cpp.
References m_count, m_historySize, m_moving_average, m_R, and MovingAverage< Type >::resize().
Referenced by MagAGC::resize(), and MagAGC::setSquared().
|
inline |
Definition at line 22 of file agc.h.
Referenced by MagAGC::setOrder(), and MagAGC::setSquared().
|
protected |
Samples counter.
Definition at line 32 of file agc.h.
Referenced by MagAGC::feedAndGetValue(), MagAGC::getStepValue(), and resize().
|
protected |
|
protected |
Averaging engine. The stack length conditions the smoothness of AGC.
Definition at line 30 of file agc.h.
Referenced by MagAGC::feedAndGetValue(), getAverage(), resize(), MagAGC::resize(), and MagAGC::setOrder().
|
protected |
ordered magnitude
Definition at line 29 of file agc.h.
Referenced by MagAGC::feedAndGetValue(), and resize().
|
protected |
AGC factor.
Definition at line 28 of file agc.h.
Referenced by MagAGC::feedAndGetValue(), and getValue().