mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-19 23:02:43 +00:00
9 lines
256 B
C++
9 lines
256 B
C++
#pragma once
|
|
#include "cosine.h"
|
|
|
|
namespace dsp::window {
|
|
inline double nuttall(double n, double N) {
|
|
const double coefs[] = { 0.355768, 0.487396, 0.144232, 0.012604 };
|
|
return cosine(n, N, coefs, sizeof(coefs) / sizeof(double));
|
|
}
|
|
} |