AlkantarClanX12
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/lib/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/lib/__pycache__/histograms.cpython-311.pyc |
� �܋fA� � �~ � 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� � d d�� � Z dd�Z! ee!� � d d�� � Z"dS )!z Histogram-related functions � N)� overrides)� histogram�histogramdd�histogram_bin_edges�numpy)�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_subtract�max�min)�xs �K/opt/cloudlinux/venv/lib64/python3.11/site-packages/numpy/lib/histograms.py�_ptpr s$ � � �a�e�e�g�g�q�u�u�w�w�/�/�/� 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 �np�sqrt�size�r �ranges r �_hist_bin_sqrtr s"