관리-도구
편집 파일: test_regression.cpython-311.pyc
� �܋f? � �P � d dl Z d dlmZmZmZ d dlmZ d dlZ G d� d� � ZdS )� N)�assert_�assert_array_equal� assert_raises)�randomc �P � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z dS ) �TestRegressionc � � t j ddd� � D ]u}t j � |dd� � }t t j |t j k � � o!t j |t j k � � � � �vd S )Ng �g @� � �2 )�np�linspacer �mtrand�vonmisesr �all�pi)�self�mu�rs �u/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/random/tests/test_regression.py�test_VonMises_rangez"TestRegression.test_VonMises_range s| � � �+�c�2�q�)�)� ?� ?�B�� �&�&�r�1�b�1�1�A��B�F�1���v�:�&�&�=�2�6�!�r�u�*�+=�+=�>�>�>�>� ?� ?� c �� � t t j t j � dddd�� � dk � � � � t t j t j � dddd�� � dk � � � � dg}t j d k }|r%t j d k r|� d� � |D ]&}t t j j |� dk � � �'d S )N� � � � ��size� r )� r! r! l �win32)� ���r# r# ) r r r r �hypergeometric�sys�maxsize�platform�append)r �args� is_64bits�args r �test_hypergeometric_rangez(TestRegression.test_hypergeometric_range s� � ����r�y�/�/��2�r��/�C�C�a�G�H�H�I�I�I����r�y�/�/��A�r��/�C�C�a�G�H�H�I�I�I� .� �� �K�%�'� �� ;����0�0��K�K�9�:�:�:�� 8� 8�C��B�I�,�c�2�Q�6�7�7�7�7� 8� 8r c �b � d}t j � d� � t j � d|�� � }t j |dk � � |z }d|d�d�}t |d k |� � t j |d k � � |z }d|d�d�}t |dk |� � d S ) N�� r g�������?r r zFrequency was �fz, should be > 0.45g�������?� z, should be < 0.23gq= ףp�?)r r �seed� logseries�sumr )r �N�rvsn�freq�msgs r �test_logseries_convergencez)TestRegression.test_logseries_convergence"