edges_analysis.averaging.averaging¶
Methods for averaging arrays.
There are multiple methods in this module, due to the need for careful averages/binning done in different ways. There are ultimately three axes over which we might bin spectra: nights, LST/GHA and frequency. Each of these in fact requires slightly different methods for averaging, in order to make the average unbiased (given flags).
Functions
|
Bin arbitrary-dimension data carefully along an axis. |
|
Bin arbitrary-dimension data carefully along an axis. |
|
Bin data, in an un-biased way if possible. |
|
Average a spectrum, with weights, in frequency. |
|
Bin an array along the frequency axis into regular bins. |
|
Bin data in an unbiased way using a model fit. |
|
Bin a spectrum in GHA and frequency in an unbiased and regular manner. |
|
Get bin edges given input coordinates and a simple description of the binning. |
|
Get the total weight in each bin for a given vector. |
|
A careful weighted mean where zero-weights don't error. |
|
Semi-weighted integrator of data. |
|
Calcualte a careful weighted standard deviation. |
|
A careful weighted sum. |