miniprojet/src/test-fft.cpp

14 lines
206 B
C++

#include <math.hpp>
#include <cmath>
int main(int argc, char** argv) {
math::signal s;
for (int i=0; i<100; ++i) {
s.push_back(std::sin(2*math::pi()*50*i/100));
}
math::fft(s);
return 0;
}