equally_spaced_bins#

sunkit_image.utils.equally_spaced_bins(inner_value=1, outer_value=2, nbins=100)[source]#

Define a set of equally spaced bins between the specified inner and outer values. The inner value must be strictly less than the outer value.

Parameters:
  • inner_value (float) – The inner value of the bins.

  • outer_value (float) – The outer value of the bins.

  • nbins (int) – Number of bins.

Returns:

numpy.ndarray – An array of shape (2, nbins) containing the bin edges.