| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/scipy/stats/__pycache__/ |
Upload File : |
�
x�f� � �D � d dl Z d dlZd dlmZmZ d dlmZ d dlZd dl m
Z
d dlmZm
Z
mZmZmZmZmZmZ d dlmZ d dlmZ d dlmZ d d lmZ d
dlmZ d
dlmZm Z m!Z! d
d
l"m#Z# d
dl$m%Z% d dl&m'Z' g d�Z( ejR dejT z � Z+ ejR d� Z, ejR ejT � Z-dZ.d� Z/d�d�Z0d�d�Z1 G d� d� Z2 G d� d� Z3 G d� d� Z4dZ5dZ6dZ7dZ8e5e6e.d �Z9e7e8e.d �Z: G d!� d"e3� Z; e;� Z< G d#� d$e4� Z=d%D ]d Z>e;j~ e> Z@e=j~ e> ZA e
j� e@j� e:� eA_C e
j� e@j� e9� e@_C �f d&ZDd'ZEdZFdZGeDeEe.d(�ZHeFeGe.d(�ZI G d)� d*e3� ZJ eJ� ZK G d+� d,e4� ZLd-D ]d Z>eJj~ e> Z@eLj~ e> ZA e
j� e@j� eI� eA_C e
j� e@j� eH� e@_C �f d.ZMdZNdZOeMe.d/�ZPeNe.d/�ZQd0� ZRd1� ZSd2� ZT G d3� d4e3� ZU eU� ZV G d5� d6e4� ZWd7D ]d Z>eUj~ e> Z@eWj~ e> ZA e
j� e@j� eQ� eA_C e
j� e@j� eP� e@_C �f d8ZXdZYdZZdZ[eXeYe.d9�Z\eZe[e.d9�Z] G d:� d;e3� Z^ e^� Z_ G d<� d=e4� Z`d>D ]d Z>e^j~ e> Z@e`j~ e> ZA e
j� e@j� e]� eA_C e
j� e@j� e\� e@_C �f d�d?�Za G d@� dAe^� Zb eb� Zc G dB� dCe4� ZddDD ]d Z>ebj~ e> Z@e`j~ e> ZA e
j� e@j� e]� eA_C e
j� e@j� e\� e@_C �f dEZedFZfdZgdZheeefe.d9�Ziegehe.d9�Zj G dG� dHe3� Zk ek� Zl G dI� dJe4� ZmdKD ]d Z>ekj~ e> Z@emj~ e> ZA e
j� e@j� ej� eA_C e
j� e@j� ei� e@_C �f G dL� dMe3� Zn en� Zo G dN� dOe4� Zp G dP� dQe3� Zq eq� Zr G dR� dSe4� Zs G dT� dUe3� Zt et� Zu G dV� dWe4� Zv G dX� dYe3� Zw ew� Zx G dZ� d[e4� Zyd\Zzd]Z{dZ|eze{e.d^�Z}de|e.d^�Z~ G d_� d`e3� Z G da� dbe4� Z� e� Z�dcD ]d Z>ej~ e> Z@e�j~ e> ZA e
j� e@j� e~� eA_C e
j� e@j� e}� e@_C �f ddZ�deZ�dZ�dZ�e�e�e.d9�Z�e�e�e.d9�Z� G df� dge3� Z� e�� Z� G dh� die4� Z�djD ]d Z>e�j~ e> Z@e�j~ e> ZA e
j� e@j� e�� eA_C e
j� e@j� e�� e@_C �f G dk� dle3� Z� e�� Z� G dm� dne4� Z�doZ�dpZ�dqZ�dre�� �Z�dZ�e.e�e�e�e�ds�Z�e��j) � Z�e��j- dde�dt�� d�du�Z� e�e�e�� dvD ]= Z>e�j~ e> Z@e�j~ e> ZA e�eAe�e@j� � e�e@e�� �? G dw� dxe3� Z� e�� Z� G dy� dze4� Z�d{� Z�d|Z�dZ�dZ�e�e.d}�Z�e�e.d}�Z�d�d~�Z� G d� d�e3� Z� e�� Z� G d�� d�e4� Z�d�D ]d Z>e�j~ e> Z@e�j~ e> ZA e
j� e@j� e�� eA_C e
j� e@j� e�� e@_C �f G d�� d�e3� Z� e�� Z� G d�� d�e4� Z�y)�� N)�asarray_chkfinite�asarray)�NumpyVersion)�doccer)�gammaln�psi�multigammaln�xlogy�entr�betaln�ive�loggamma)�check_random_state)�drot)�LinAlgError)�get_lapack_funcs� )�binom)�_mvn�_covariance�_rcont��_qmvt)�directional_stats)�root_scalar)�multivariate_normal�
matrix_normal� dirichlet�dirichlet_multinomial�wishart�
invwishart�multinomial�special_ortho_group�ortho_group�random_correlation�
unitary_group�multivariate_t�multivariate_hypergeom�random_table�uniform_direction�vonmises_fisher� a� seed : {None, int, np.random.RandomState, np.random.Generator}, optional
Used for drawing random variates.
If `seed` is `None`, the `~np.random.RandomState` singleton is used.
If `seed` is an int, a new ``RandomState`` instance is used, seeded
with seed.
If `seed` is already a ``RandomState`` or ``Generator`` instance,
then that object is used.
Default is `None`.
c �N � | j � } | j dk( r| d } | S )z_
Remove single-dimensional entries from array and convert to scalar,
if necessary.
r � )�squeeze�ndim��outs �;/usr/lib/python3/dist-packages/scipy/stats/_multivariate.py�_squeeze_outputr4 8 s( � �
�+�+�-�C�
�x�x�1�}��"�g���J� c �� � |�|}|dv rN| j j j � }ddd�}|| t j |� j
z }|t j t | � � z }|S )a� Determine which eigenvalues are "small" given the spectrum.
This is for compatibility across various linear algebra functions
that should agree about whether or not a Hermitian matrix is numerically
singular and what is its numerical matrix rank.
This is designed to be compatible with scipy.linalg.pinvh.
Parameters
----------
spectrum : 1d ndarray
Array of eigenvalues of a Hermitian matrix.
cond, rcond : float, optional
Cutoff for small eigenvalues.
Singular values smaller than rcond * largest_eigenvalue are
considered zero.
If None or -1, suitable machine precision is used.
Returns
-------
eps : float
Magnitude cutoff for numerical negligibility.
)N���� @�@g ��.A)�f�d)�dtype�char�lower�np�finfo�eps�max�abs)�spectrum�cond�rcond�t�factorr@ s r3 �_eigvalsh_to_epsrH C so � �0
�����z���N�N���%�%�'����%���a�y�2�8�8�A�;�?�?�*��
�����H�
�&�
&�C��Jr5 c � � t j | D �cg c] }t |� |k rdnd|z �� c}t �� S c c}w )a� A helper function for computing the pseudoinverse.
Parameters
----------
v : iterable of numbers
This may be thought of as a vector of eigenvalues or singular values.
eps : float
Values with magnitude no greater than eps are considered negligible.
Returns
-------
v_pinv : 1d float ndarray
A vector of pseudo-inverted numbers.
r r �r; )r>