2019-11-26 12:24:33 +00:00
|
|
|
#include <math.hpp>
|
2019-11-26 09:56:37 +00:00
|
|
|
#include <cmath>
|
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
2019-11-26 12:24:33 +00:00
|
|
|
math::csignal s;
|
2019-11-26 09:56:37 +00:00
|
|
|
|
2019-11-26 12:24:33 +00:00
|
|
|
for (int i=0; i<100; ++i) {
|
|
|
|
s.push_back(std::sin(2*math::pi()*50*i/100));
|
|
|
|
}
|
|
|
|
math::csignal tfd = math::fft(s);
|
2019-11-26 09:56:37 +00:00
|
|
|
|
2019-11-26 12:24:33 +00:00
|
|
|
return 0;
|
2019-11-26 09:56:37 +00:00
|
|
|
}
|