This is a pre-release version (latest). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / lib / _histograms_impl / _hist_bin_doane

function

numpy.lib._histograms_impl:_hist_bin_doane

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

Signature

def   _hist_bin_doane ( x range )

Summary

Doane's histogram bin estimator.

Extended Summary

Improved version of Sturges' formula which works better for non-normal data. See stats.stackexchange.com/questions/55134/doanes-formula-for-histogram-binning

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_doane