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 <recursivefilters.h>
Public Member Functions | |
SecondOrderRecursiveFilter (float samplingFrequency, float centerFrequency, float r) | |
~SecondOrderRecursiveFilter () | |
void | setFrequencies (float samplingFrequency, float centerFrequency) |
void | setR (float r) |
short | run (short sample) |
float | run (float sample) |
Private Member Functions | |
void | init () |
Private Attributes | |
float | m_r |
float | m_frequencyRatio |
float | m_f |
float | m_v [3] |
: This is a second order bandpass filter using recursive method. r is in range ]0..1[ the higher the steeper the filter. inspired by:http://www.ece.umd.edu/~tretter/commlab/c6713slides/FSKSlides.pdf
Definition at line 27 of file recursivefilters.h.
SecondOrderRecursiveFilter::SecondOrderRecursiveFilter | ( | float | samplingFrequency, |
float | centerFrequency, | ||
float | r | ||
) |
Definition at line 24 of file recursivefilters.cpp.
References init().
SecondOrderRecursiveFilter::~SecondOrderRecursiveFilter | ( | ) |
Definition at line 32 of file recursivefilters.cpp.
|
private |
Definition at line 68 of file recursivefilters.cpp.
Referenced by SecondOrderRecursiveFilter(), setFrequencies(), and setR().
short SecondOrderRecursiveFilter::run | ( | short | sample | ) |
Definition at line 48 of file recursivefilters.cpp.
Referenced by ATVDemod::demod().
float SecondOrderRecursiveFilter::run | ( | float | sample | ) |
Definition at line 58 of file recursivefilters.cpp.
void SecondOrderRecursiveFilter::setFrequencies | ( | float | samplingFrequency, |
float | centerFrequency | ||
) |
Definition at line 35 of file recursivefilters.cpp.
References cos(), init(), m_f, m_frequencyRatio, and M_PI.
Referenced by ATVDemod::applySettings().
void SecondOrderRecursiveFilter::setR | ( | float | r | ) |
|
private |
Definition at line 43 of file recursivefilters.h.
Referenced by run(), and setFrequencies().
|
private |
Definition at line 42 of file recursivefilters.h.
Referenced by setFrequencies().
|
private |
Definition at line 41 of file recursivefilters.h.
|
private |
Definition at line 44 of file recursivefilters.h.