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_scott

function

numpy.lib._histograms_impl:_hist_bin_scott

source: /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_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_scott