CONTEXT
I read 5 different related posts but I do not understand how to interpret mathematica's output for my situation.
data=(Uncompress@*FromCharacterCode@*Flatten@*(ImageData[#1, "Byte"] &)@*
Import)["http://ooo.0o0.ooo/2016/10/16/5803c2e35b8ac.png"]
I have 300 measurements (taken every 1 second);
I am told that the data is in the form $$y = A \sin{2\pi f t}$$
I want to find the frequency $f$ using a fourier transform
ListLinePlot[data]
plotting the data it seems (using my fallible human perception) that the period is not far of 18 seconds
Show[
ListLinePlot[data, AxesLabel -> {"s"}],
Plot[.03 Sin[2 \[Pi] (1/18) t] + Mean[data], {t, 0, 300},
PlotStyle -> Directive[Orange, Dashed]
]
]
note this code could be incorrect perhaps I need to include FourierParameters
powerSpectrum = Abs[Fourier[data[[All, 2]]]]^2;
ListLinePlot[powerSpectrum[[1 ;; 100]], PlotStyle -> Red, PlotRange -> {All, {0, .012}}]
QUESTION
Ignoring the outliers on the extreme left it appears that the highest spike is near x = 18
How does one convert this into a frequency (number of oscillations in 1 second)?
Given that my sample length is 300 seconds?