Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFT Uncertainty #97

Open
moccasinmatt opened this issue Apr 18, 2024 · 1 comment
Open

FFT Uncertainty #97

moccasinmatt opened this issue Apr 18, 2024 · 1 comment

Comments

@moccasinmatt
Copy link

How would I calculate the FFT uncertainty based upon the sampling frequency and the number of samples. For our project, the number of samples is 128 and the sampling frequency is 2048. This would seem to say that the FFT resolution is 16 Hz and the uncertainty is 8 Hz, but the majorPeak is far more accurate than plus or minus 8 Hz. Why is that? and how can I determine the uncertainty?

@kosme
Copy link
Owner

kosme commented Apr 19, 2024

majorPeak() interpolates the highest frequency, which is why you see an accuracy better than ±8Hz. Therefore, the returned value is an estimate. You could search manually for the highest bin in vReal and calculate its frequency based on the index number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants