|
FERS 1.0.0
The Flexible Extensible Radar Simulator
|
Implements a Finite Impulse Response (FIR) filter. More...
#include "dsp_filters.h"
Inheritance diagram for fers_signal::FirFilter:
Collaboration diagram for fers_signal::FirFilter:Public Member Functions | |
| FirFilter (std::span< const RealType > coeffs) | |
| Constructs an FIR filter with the given coefficients. | |
| ~FirFilter () override=default | |
| RealType | filter (RealType) override |
| Filters a single sample. | |
| void | filter (std::span< RealType >) noexcept override |
| Filters a block of samples. | |
| void | filter (std::vector< ComplexType > &samples) const |
| Filters a block of complex samples. | |
Implements a Finite Impulse Response (FIR) filter.
Definition at line 120 of file dsp_filters.h.
|
explicit |
Constructs an FIR filter with the given coefficients.
| coeffs | Span of filter coefficients. |
Definition at line 128 of file dsp_filters.h.
|
overridedefault |
Filters a single sample.
| sample | A single real-valued sample to be filtered. |
Implements fers_signal::DspFilter.
Definition at line 135 of file dsp_filters.h.
Referenced by fers_signal::downsample(), and fers_signal::upsample().
Here is the caller graph for this function:
|
overridevirtualnoexcept |
Filters a block of samples.
| samples | Span of real-valued samples to be filtered. |
Implements fers_signal::DspFilter.
Definition at line 137 of file dsp_filters.h.
| void fers_signal::FirFilter::filter | ( | std::vector< ComplexType > & | samples | ) | const |
Filters a block of complex samples.
| samples | Span of complex samples to be filtered. |
Definition at line 158 of file dsp_filters.cpp.