← Back
Editing: test_cont2discrete.cpython-311.pyc
� d�c�9 � � � d dl Zd dlmZmZmZmZ d dlZd dlm Z d dlmZmZm Z mZmZ d dlmZmZmZmZmZ G d� d� � Z G d� d � � Z G d � d� � ZdS )� N)�assert_array_almost_equal�assert_almost_equal�assert_allclose�assert_equal)� cont2discrete)�dlsim�ss2tf�ss2zpk�lsim2�lti)�tf2ss�impulse2�dimpulse�step2�dstepc �\ � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � ZdS )�TestC2Dc � � t j d� � }t j dd� � }t j ddgddgddgg� � }t j dgdgdgg� � }d t j d� � z }t j dd � � }d}t ||||f|d�� � \ }} } }}t ||� � t || � � t || � � t ||� � t ||� � d S ) N� �r � � �?� �?� �?� �?� ���Q�տ��)a�?g6 <S��?�zoh��method��np�eye�full�array�c2dr r ) �self�ac�bc�cc�dc�ad_truth�bd_truth�dt_requested�ad�bd�cd�dd�dts �G/usr/lib/python3/dist-packages/scipy/signal/tests/test_cont2discrete.py�test_zohzTestC2D.test_zoh s � � �V�A�Y�Y�� �W�V�S� !� !�� �X��c�{�S�#�J��d��<� =� =�� �X��u�s�e�e�W�-� .� .��$�r�v�a�y�y�0���7�6�#4�5�5���� �"�b�"�b�!1�<��N�N�N���B��B��!�(�B�/�/�/�!�(�B�/�/�/�!�"�b�)�)�)�!�"�b�)�)�)��L�"�-�-�-�-�-� c �2 � t j d� � }t j dd� � }t j ddgddgddgg� � }t j dgdgdgg� � }d t j d� � z }t j dd � � }|}t j dgdgd gg� � }d} t ||||f| d�� � \ } }}} }t || � � t ||� � t ||� � t || � � t | |� � d S )Nr r r r r r r r r gm�����?g>.��"��?g�4�pL �?g.Ȫ�q¿�fohr r"