bundles / numpy 2.4.4 / numpy / lib / _histograms_impl / _hist_bin_rice
function
numpy.lib._histograms_impl:_hist_bin_rice
Signature
def _hist_bin_rice ( x , range ) Summary
Rice histogram bin estimator.
Extended Summary
Another simple estimator with no normality assumption. It has better performance for large data than Sturges, but tends to overestimate the number of bins. The number of bins is proportional to the cube root of data size (asymptotically optimal). 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_rice