← Back
Editing: test_entropy.cpython-311.pyc
� d�c, � � � d dl Zd dlmZmZ d dlmZmZmZ d dlZd dlm Z d dlmZ G d� d� � Z G d� d� � ZdS ) � N)�assert_equal�assert_allclose)�assert_�assert_almost_equal�assert_array_almost_equal)�raisesc �h � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� ZdS )�TestEntropyc � � g d�}g d�}t j ||� � }t j ||� � }t d|k � � t |dk � � d S )N)� �?皙�����?�333333�?)皙�����?g �?g�������?� )�stats�entropyr )�self�pk�qk�eself�edoubles �@/usr/lib/python3/dist-packages/scipy/stats/tests/test_entropy.py�test_entropy_positivez!TestEntropy.test_entropy_positive sb � � �_�_�� � � ��� �b�"�%�%���-��B�'�'����u�������3������� c � � t j dt � � }t j |d�� � }t t |dz � � dk � � t j dt � � }d|d d�<