You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / numpy / lib / _histograms_impl / _hist_bin_sqrt

function

numpy.lib._histograms_impl:_hist_bin_sqrt

source: /numpy/lib/_histograms_impl.py :32

Signature

def   _hist_bin_sqrt ( x range )

Summary

Square root histogram bin estimator.

Extended Summary

Bin width is inversely proportional to the data size. Used by many programs for its simplicity.

Parameters

x : array_like

Input 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_sqrt