This repository has been archived by the owner on Dec 22, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First try to implement the Radial Average of a Power Spectrum (or any real fft function) proposed in #224 .
It needs a Power Spectrum in a square grid with odd number of points per axis in order to ensure that the center of the zero frequency matches the center of the grid. The radial average is made by concentric rings of inner radii f-df/2 and outer radii f+df/2, where f is each frecuency and df is the fundamental frecuency. The first ring is a circle containing only the zero frecuency point. The next is a ring surrounding this circle, and so on.
![rings](https://cloud.githubusercontent.com/assets/11541317/9189454/ebf50b60-3fbe-11e5-97b6-f1a12f1fe143.png)
Also, it calculates the standard deviation for each average:
rms = \sqrt{ \sum (x_i - \overline{x})*_2 / nx_ny }
Here is an example: