mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-20 07:12:43 +00:00
even more stuff
This commit is contained in:
9
core/src/dsp/window/hann.h
Normal file
9
core/src/dsp/window/hann.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
#include "cosine.h"
|
||||
|
||||
namespace dsp::window {
|
||||
inline double hann(double n, double N) {
|
||||
const double coefs[] = { 0.5, 0.5 };
|
||||
return cosine(n, N, coefs, sizeof(coefs) / sizeof(double));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user