관리-도구
편집 파일: test_randomstate_regression.cpython-311.pyc
� �܋f� � �d � d dl Z d dlZd dlmZmZmZ d dlZd dlmZ G d� d� � Z d� Z d� ZdS )� N)�assert_�assert_array_equal� assert_raises)�randomc �� � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zej � ej d� � j dk d�� � d� � � Zd� Zd� ZdS )�TestRegressionc � � t j ddd� � D ]j}t j |dd� � }t t j |t j k � � o!t j |t j k � � � � �kd S )Ng �g @� � �2 )�np�linspacer �vonmisesr �all�pi)�self�mu�rs ��/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/random/tests/test_randomstate_regression.py�test_VonMises_rangez"TestRegression.test_VonMises_range sv � � �+�c�2�q�)�)� ?� ?�B����A�r�*�*�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 |� dk � � �"d S )N� � � � ��size� r )� r r � �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� � ����v�,�Q��B�R�@�@�@�1�D�E�E�F�F�F����v�,�R��B�R�@�@�@�1�D�E�E�F�F�F� .� �� �K�%�'� �� ;����0�0��K�K�9�:�:�:�� 5� 5�C��F�)�3�/�!�3�4�4�4�4� 5� 5r c �6 � 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 �seed� logseriesr �sumr )r �N�rvsn�freq�msgs r �test_logseries_convergencez)TestRegression.test_logseries_convergence&