This commit is contained in:
AlexandreRouma
2026-02-06 22:20:43 -05:00
parent 80f2d752c1
commit 9bc41dbe2a
9 changed files with 47 additions and 27 deletions

View File

@@ -1,21 +1,9 @@
#include <stdio.h>
#include "dsp/window.h"
#include "dsp/window/all.h"
void testFunc(dsp::Window win) {
printf("win(0.0) = %f\n", win(0.0));
printf("win(0.5) = %f\n", win(0.5));
printf("win(1.0) = %f\n", win(1.0));
}
#include <exception>
int main() {
try {
testFunc(dsp::window::Hann());
dsp::Window win = dsp::window::Triangular();
dsp::Window win2 = dsp::window::Hann();
win = dsp::window::Hann();
return 0;
}