mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-19 23:02:43 +00:00
10 lines
277 B
C++
10 lines
277 B
C++
#pragma once
|
|
#include <math.h>
|
|
#include "cosine.h"
|
|
|
|
namespace dsp::window {
|
|
inline double blackmanHarris(double n, double N) {
|
|
const double coefs[] = { 0.35875, 0.48829, 0.14128, 0.01168 };
|
|
return cosine(n, N, coefs, sizeof(coefs) / sizeof(double));
|
|
}
|
|
} |