f4enix.output.rssa.rssa_plotting.calculate_areas#

f4enix.output.rssa.rssa_plotting.calculate_areas(x_bins: Sequence[float] | Series, y_bins: Sequence[float] | Series) ndarray#

Calculate the areas of the bins in a 2D histogram.

Parameters:
  • x_bins (Sequence[float] | pl.Series) – The x-axis bin edges.

  • y_bins (Sequence[float] | pl.Series) – The y-axis bin edges.

Returns:

A 2D array with the areas of each bin.

Return type:

np.ndarray