Hi I tried to do a Fourier transform of a series of points from a plot from ma wave-train profile.
The commands are as such
draupnerpoints= {{-5, 0}, {-4.8, 3}, {-4.5, 1}, {-4.2, 1}, {-4, 3.5}, {-3.8,
0}, {-3.5, 6}, {-3.1, 0}, {-3, -5.5}, {-2.8, 0}, {-2.5, 6}, {-2.1,
0}, {-1.8, -2.5}, {-1.5, 0}, {-1.2, 5}, {-0.8,
0}, {-0.5, -8}, {-0.2, 0}, {0, 18}, {1/2, 0}, {2/3, -8}, {1,
0}, {4/3, 4}, {3/2, 0}, {1.6, -4}, {2, 3}, {2.5, -3}, {3,
3}, {3.2, -2}, {3.5, 2}, {3.8, -4}, {4.2, 0}, {4.5,
6}, {4.8, -5}, {5, 0.1}};
ifun = Interpolation[draupnerpoints]
Plot[ifun[[FormalX]], {[FormalX], -5., 5.},
Epilog -> {Red, Point[draupnerpoints]}]
which give
Now, we have the interpolated plot. But since i want to do a Discrete Fourier transform of it, I continue as such:
sr = 3(*sample rate*);
ft = Fourier[draupnerpoints, FourierParameters -> {-1, -1}];
ff = Table[(n - 1) sr/Length@draupnerpoints, {n,
Length@draupnerpoints}]
Then I get a series of points, which form a linear function, however this was not as expected. I expected a Fourier-type function which is similar to the plot.
How can I get a Fourier series that represents this plot from the commands issued?
Thanks



