cluster_toolkit.averaging module¶
Averaging projected cluster profiles.
-
cluster_toolkit.averaging.
average_profile_in_bin
(Rlow, Rhigh, R, prof)[source]¶ Average profile in a bin.
Calculates the average of some projected profile in a radial bin in Mpc/h comoving.
Parameters: - Rlow (float) – Inner radii.
- Rhigh (float) – Outer radii.
- R (array like) – Radii of the profile.
- prof (array like) – Projected profile.
Returns: Average profile in the radial bin, or annulus.
Return type: float
-
cluster_toolkit.averaging.
average_profile_in_bins
(Redges, R, prof)[source]¶ Average profile in bins.
Calculates the average of some projected profile in a radial bins in Mpc/h comoving.
Parameters: - Redges (array like) – Array of radial bin edges.
- R (array like) – Radii of the profile.
- prof (array like) – Projected profile.
Returns: Average profile in bins between the edges provided.
Return type: numpy.array