This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / _histograms_impl / _get_bin_edges

function

numpy.lib._histograms_impl:_get_bin_edges

source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_histograms_impl.py :356

Signature

def   _get_bin_edges ( a bins range weights )

Summary

Computes the bins used internally by histogram.

Parameters

a : ndarray

Ravelled data array

bins, range

Forwarded arguments from histogram.

weights : ndarray, optional

Ravelled weights array, or None

Returns

bin_edges : ndarray

Array of bin edges

uniform_bins : (Number, Number, int):

The upper bound, lowerbound, and number of bins, used in the optimized implementation of histogram that works on uniform bins.

Aliases

  • numpy.lib._histograms_impl._get_bin_edges