Files
sdrpp/core/src/dsp/window/blackman_nuttall.h
AlexandreRouma d1318d3a0f even more stuff
2022-06-15 16:08:54 +02:00

10 lines
286 B
C++

#pragma once
#include <math.h>
#include "cosine.h"
namespace dsp::window {
inline double blackmanNuttall(double n, double N) {
const double coefs[] = { 0.3635819, 0.4891775, 0.1365995, 0.0106411 };
return cosine(n, N, coefs, sizeof(coefs) / sizeof(double));
}
}