mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-04-27 14:30:48 +00:00
Comment about correct MatchedFilter usage.
Because the filter expects a combined translate/rotate and low-pass filter in the taps, the taps must be a multiple of the translate sinusoid period.
This commit is contained in:
parent
9e694ce836
commit
fc037c739a
@ -36,6 +36,11 @@
|
|||||||
namespace dsp {
|
namespace dsp {
|
||||||
namespace matched_filter {
|
namespace matched_filter {
|
||||||
|
|
||||||
|
// This filter contains "magic" (optimizations) that expect the taps to
|
||||||
|
// combine a low-pass filter with a complex sinusoid that performs shifting of
|
||||||
|
// the input signal to 0Hz/DC. This also means that the taps length must be
|
||||||
|
// a multiple of the complex sinusoid period.
|
||||||
|
|
||||||
class MatchedFilter {
|
class MatchedFilter {
|
||||||
public:
|
public:
|
||||||
using sample_t = std::complex<float>;
|
using sample_t = std::complex<float>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user