miniprojet/tests/examples/test-fft.cpp

14 lines
227 B
C++
Raw Normal View History

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