firecrown.generators.two_point.generate_bin_centers

firecrown.generators.two_point.generate_bin_centers#

firecrown.generators.two_point.generate_bin_centers(*, minimum, maximum, n, binning='log')[source]#

Return the centers of bins that span the range from minimum to maximum.

If binning is ‘log’, this will generate logarithmically spaced bins; if binning is ‘lin’, this will generate linearly spaced bins.

Parameters:
  • minimum (float) – The low edge of the first bin.

  • maximum (float) – The high edge of the last bin.

  • n (int) – The number of bins.

  • binning (str) – Either ‘log’ or ‘lin’.

Return type:

ndarray[tuple[int, ...], dtype[float64]]

Returns:

The centers of the bins.