| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/numpy/lib/__pycache__/ |
Upload File : |
�
�g�� � �f � d Z ddlZddlZddlZddlZddlZddlmZ g d�Z ej ej d�� ZeZ
d� Zd� Zd � Zd
� Zd� Zd� Zd
� Zd� Zd� Zeeeeeeeed�Zd� Zd� Zd� Zd� Zd� Zdd�Z ee� dd�� Z dd�Z ee� dd�� Z dd�Z! ee!� dd�� Z"y) z
Histogram-related functions
� N)� overrides)� histogram�histogramdd�histogram_bin_edges�numpy)�modulec �R � t | j � | j � � 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_subtract�max�min)�xs �<C:\Python312\Lib\site-packages\numpy/lib/_histograms_impl.py�_ptpr s � � �a�e�e�g�q�u�u�w�/�/� c �Z � ~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 �np�sqrt�size�r
�ranges r �_hist_bin_sqrtr s"