bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / lib / _histograms_impl / _hist_bin_scott
function
numpy.lib._histograms_impl:_hist_bin_scott
source: build-install/usr/lib/python3.14/site-packages/numpy/lib/_histograms_impl.py :100
Signature
def _hist_bin_scott ( x , range ) Summary
Scott histogram bin estimator.
Extended Summary
The binwidth is proportional to the standard deviation of the data and inversely proportional to the cube root of data size (asymptotically optimal).
Parameters
x: array_likeInput data that is to be histogrammed, trimmed to range. May not be empty.
Returns
h: An estimate of the optimal bin width for the given data.
Aliases
-
numpy.lib._histograms_impl._hist_bin_scott