bundles / numpy 2.4.4 / numpy / lib / _histograms_impl / _hist_bin_sturges
function
numpy.lib._histograms_impl:_hist_bin_sturges
Signature
def _hist_bin_sturges ( x , range ) Summary
Sturges histogram bin estimator.
Extended Summary
A very simplistic estimator based on the assumption of normality of the data. This estimator has poor performance for non-normal data, which becomes especially obvious for large data sets. The estimate depends only on size of the data.
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_sturges