mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-01 19:16:29 -04: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
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue