uvvis.binning¶
-
uvvis.
binning
(x, y, d)¶ Return a binned version of x and y, where the new y values are calculated as the average over the bin width at the center of the bin.
Parameters: - x (array) – x-axis.
- y (array) – Data (same shape as x).
- d (int) – Bin width in indices. Should be an odd number.
Returns: bin centers, binned value and standard deviation over the binned values.