s]PI ~ d Z ddlZddlZddlZddlZddlZddlmZ g dZ ej ej d ZeZ d Zd Zd Zd Zd Zd Zd Zd Zd ZeeeeeeeedZd Zd Zd Zd Zd ZddZ ee dd Z ddZ ee d d Z ddZ! ee! d d Z"dS )!z Histogram-related functions N) overrides) histogramhistogramddhistogram_bin_edgesnumpy)modulec j t | | S )a Peak-to-peak value of x. This implementation avoids the problem of signed integer arrays having a peak-to-peak value that cannot be represented with the array's data type. This function returns an unsigned value for signed integer arrays. )_unsigned_subtractmaxmin)xs h/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/lib/histograms.py_ptpr s$ aeeggquuww/// c V ~t | t j | j z S )a~ Square root histogram bin estimator. 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. )r npsqrtsizer ranges r _hist_bin_sqrtr s" " 77RWQV__$$r c \ ~t | t j | j dz z S )a Sturges histogram bin estimator. 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_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. ?)r r log2r r s r _hist_bin_sturgesr 5 s' &