mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-20 23:22:43 +00:00
even more stuff
This commit is contained in:
10
core/src/dsp/window/blackman_nuttall.h
Normal file
10
core/src/dsp/window/blackman_nuttall.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user