EhlersEnhancedSignalToNoiseRatioH

Download script
Author: Copyright 2020, Andrei Novichkov.
2 Views
0 Downloads
0 Favorites
EhlersEnhancedSignalToNoiseRatioH
ÿþ/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � �E�h�l�e�r�s� �E�n�h�a�n�c�e�d�S�i�g�n�a�l�T�o�N�o�i�s�e�R�a�t�i�o�.�m�q�5� �|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �C�o�p�y�r�i�g�h�t� �2�0�2�0�,� �A�n�d�r�e�i� �N�o�v�i�c�h�k�o�v�.� �|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �h�t�t�p�:�/�/�f�x�s�t�i�l�l�.�c�o�m� �|�
�
�/�/�|� � � �T�e�l�e�g�r�a�m�:� �h�t�t�p�s�:�/�/�t�.�m�e�/�f�x�s�t�i�l�l� �(�L�i�t�e�r�a�t�u�r�e� �o�n� �c�r�y�p�t�o�c�u�r�r�e�n�c�i�e�s�,�|�
�
�/�/�|� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �d�e�v�e�l�o�p�m�e�n�t� �a�n�d� �c�o�d�e�.� �)� � � � � � � � �|�
�
�/�/�+�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�-�+�
�
�
�
�#�p�r�o�p�e�r�t�y� �c�o�p�y�r�i�g�h�t� �"�C�o�p�y�r�i�g�h�t� �2�0�2�0�,� �A�n�d�r�e�i� �N�o�v�i�c�h�k�o�v�.�"�
�
�#�p�r�o�p�e�r�t�y� �l�i�n�k� � � � � � �"�h�t�t�p�:�/�/�f�x�s�t�i�l�l�.�c�o�m�"�
�
�#�p�r�o�p�e�r�t�y� �v�e�r�s�i�o�n� � � �"�1�.�0�0�"�
�
�#�p�r�o�p�e�r�t�y� �d�e�s�c�r�i�p�t�i�o�n� �"�T�h�e� �E�n�h�a�n�c�e�d� �S�i�g�n�a�l� �T�o� �N�o�i�s�e� �R�a�t�i�o�:�\�n�J�o�h�n� �E�h�l�e�r�s�,� �\�"�R�o�c�k�e�t� �S�c�i�e�n�c�e� �f�o�r� �T�r�a�d�e�r�s�.�\�"�,� �p�g�.�8�7�-�8�8�"�
�
�
�
�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�s�e�p�a�r�a�t�e�_�w�i�n�d�o�w�
�
�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�l�e�v�e�l�1� � � � � �(�d�o�u�b�l�e�)�6�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�l�e�v�e�l�s�t�y�l�e� �S�T�Y�L�E�_�S�O�L�I�D�
�
�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�b�u�f�f�e�r�s� �1�7�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�p�l�o�t�s� � � �1�
�
�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�t�y�p�e�1� � � �D�R�A�W�_�C�O�L�O�R�_�L�I�N�E� �
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�w�i�d�t�h�1� � �2�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�s�t�y�l�e�1� � �S�T�Y�L�E�_�S�O�L�I�D�
�
�#�p�r�o�p�e�r�t�y� �i�n�d�i�c�a�t�o�r�_�c�o�l�o�r�1� � �c�l�r�G�r�e�e�n�,� �c�l�r�R�e�d�,� �c�l�r�L�i�m�e�G�r�e�e�n� �
�
�
�
�
�
�d�o�u�b�l�e� �s�n�r�[�]�;�
�
�d�o�u�b�l�e� �c�f�[�]�;� �
�
�d�o�u�b�l�e� �q�3�[�]�,� �n�o�i�s�e�[�]�;�
�
�
�
�d�o�u�b�l�e� �S�m�o�o�t�h�[�]�,� �D�e�t�r�e�n�d�e�r�[�]�,� �I�1�[�]�,� �Q�1�[�]�,� �j�I�[�]�,� �j�Q�[�]�,� �I�2�[�]�,� �Q�2�[�]�,� �R�e�[�]�,� �I�m�[�]�,� �P�e�r�[�]�,� �S�m�o�o�t�h�P�e�r�i�o�d�[�]�,� �p�r�i�c�e�[�]�;� �
�
�
�
�s�t�a�t�i�c� �i�n�t� �M�I�N�B�A�R� �=� �7�;�
�
�
�
�i�n�t� �O�n�I�n�i�t�(�)� � �{�
�
�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�0�,�s�n�r�,�I�N�D�I�C�A�T�O�R�_�D�A�T�A�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�1�,�c�f�,�I�N�D�I�C�A�T�O�R�_�C�O�L�O�R�_�I�N�D�E�X�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�2�,�q�3�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�3�,�n�o�i�s�e�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�4�,�S�m�o�o�t�h�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�5�,�D�e�t�r�e�n�d�e�r�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�6�,�I�1�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�7�,�Q�1�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�8�,�j�I�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�9�,�j�Q�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�1�0�,�I�2�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�1�1�,�Q�2�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�1�2�,�R�e�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�1�3�,�I�m�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�1�4�,�P�e�r�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�1�5�,�S�m�o�o�t�h�P�e�r�i�o�d�,�I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;� � � �
�
� � � �S�e�t�I�n�d�e�x�B�u�f�f�e�r�(�1�6�,� �p�r�i�c�e�,� �I�N�D�I�C�A�T�O�R�_�C�A�L�C�U�L�A�T�I�O�N�S�)�;�
�
� � � �
�
� � � �
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�s�n�r�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�c�f�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�q�3�,� �t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�n�o�i�s�e�,� �t�r�u�e�)�;�
�
� � � �
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�S�m�o�o�t�h�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�D�e�t�r�e�n�d�e�r�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�I�1�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�Q�1�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�j�I�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�j�Q�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�I�2�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�Q�2�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�R�e�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�I�m�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�P�e�r�,�t�r�u�e�)�;�
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�S�m�o�o�t�h�P�e�r�i�o�d�,�t�r�u�e�)�;�
�
� � � �
�
� � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�p�r�i�c�e�,� �t�r�u�e�)�;�
�
� � � �
�
� � � �
�
� � � �I�n�d�i�c�a�t�o�r�S�e�t�S�t�r�i�n�g�(�I�N�D�I�C�A�T�O�R�_�S�H�O�R�T�N�A�M�E�,�"�E�n�h�a�n�c�e�d�S�i�g�n�a�l�T�o�N�o�i�s�e�R�a�t�i�o�H�"�)�;�
�
� � � �I�n�d�i�c�a�t�o�r�S�e�t�I�n�t�e�g�e�r�(�I�N�D�I�C�A�T�O�R�_�D�I�G�I�T�S�,�_�D�i�g�i�t�s�)�;�
�
� � � �
�
� � � �r�e�t�u�r�n�(�I�N�I�T�_�S�U�C�C�E�E�D�E�D�)�;�
�
�}�
�
�
�
�d�o�u�b�l�e� �G�e�t�V�a�l�u�e�(�c�o�n�s�t� �d�o�u�b�l�e�&� �h�[�]�,� �c�o�n�s�t� �d�o�u�b�l�e�&� �l�[�]�,� �i�n�t� �i�)� �{�
�
� � � �
�
� � � �q�3�[�i�]� �=� �0�.�5� �*� �(�S�m�o�o�t�h�[�i�]� �-� �S�m�o�o�t�h�[�i� �+� �2�]�)� �*� �(�0�.�1�7�5�9� �*� �S�m�o�o�t�h�P�e�r�i�o�d�[�i�]� �+� �0�.�4�6�0�7�)�;�
�
� � � �d�o�u�b�l�e� �i�3� �=� �0�.�0�;�
�
� � � �i�n�t� �s�p� �=� �(�i�n�t�)�M�a�t�h�C�e�i�l�(�S�m�o�o�t�h�P�e�r�i�o�d�[�i�]� �/� �2�)�;�
�
� � � �i�f� �(�s�p� �=�=� �0�)� �s�p� �=� �1�;�
�
� � � �
�
� � � �f�o�r� �(�i�n�t� �j� �=� �0�;� �j� �<� �s�p�;� �j�+�+�)� �{�
�
� � � � � � � �i�3� �+�=� �q�3�[�j� �+� �i�]�;�
�
� � � �}� � � � �
�
� � � �i�3� �=� �(�1�.�5�7� �*� �i�3�)� �/� �s�p�;�
�
� � � �
�
� � � �d�o�u�b�l�e� �s�i�g�n�a�l� �=� �M�a�t�h�P�o�w�(�i�3�,� �2�)� �+� �M�a�t�h�P�o�w�(�q�3�[�i�]�,� �2�)�;�
�
� � � �
�
� � � �n�o�i�s�e�[�i�]� �=� �0�.�1� �*� �M�a�t�h�P�o�w�(�(�h�[�i�]� �-� �l�[�i�]�)�,� �2�)� �*� �0�.�2�5� �+� �0�.�9� �*� �n�o�i�s�e�[�i� �+� �1�]�;�
�
� � � �
�
� � � �i�f� �(�n�o�i�s�e�[�i�]� �!�=� �0�.�0� �&�&� �s�i�g�n�a�l� �!�=� �0�)� �{�
�
� � � � � � �d�o�u�b�l�e� �s� �=� �Z�e�r�r�o�I�f�E�m�p�t�y�(�s�n�r�[�i� �+� �1�]�)�;�
�
� � � � � � �s�n�r�[�i�]� �=� �3�.�3� �*� �M�a�t�h�L�o�g�(�s�i�g�n�a�l� �/� �n�o�i�s�e�[�i�]�)� �/� �M�a�t�h�L�o�g�(�1�0�)� �+� �0�.�6�7� �*� �s�;�
�
� � � �}� �e�l�s�e� �{�
�
� � � � � � �s�n�r�[�i�]� �=� �0�;�
�
� � � �}�
�
� � � �i�f� �(�p�r�i�c�e�[�i�]� �>� �S�m�o�o�t�h�[�i�]�)� � �c�f�[�i�]� �=� �2� �;� �
�
� � � �e�l�s�e�
�
� � � � � � �i�f� �(�p�r�i�c�e�[�i�]� �<� �S�m�o�o�t�h�[�i�]�)� � �c�f�[�i�]� �=� �1� �;�
�
� �
�
� � � �r�e�t�u�r�n� �s�n�r�[�i�]�;�
�
�}�
�
�
�
�i�n�t� �O�n�C�a�l�c�u�l�a�t�e�(�c�o�n�s�t� �i�n�t� �r�a�t�e�s�_�t�o�t�a�l�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �i�n�t� �p�r�e�v�_�c�a�l�c�u�l�a�t�e�d�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�a�t�e�t�i�m�e� �&�t�i�m�e�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�o�u�b�l�e� �&�o�p�e�n�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�o�u�b�l�e� �&�h�i�g�h�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�o�u�b�l�e� �&�l�o�w�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �d�o�u�b�l�e� �&�c�l�o�s�e�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �l�o�n�g� �&�t�i�c�k�_�v�o�l�u�m�e�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �l�o�n�g� �&�v�o�l�u�m�e�[�]�,�
�
� � � � � � � � � � � � � � � � �c�o�n�s�t� �i�n�t� �&�s�p�r�e�a�d�[�]�)� �{�
�
� � � � � � �i�f�(�r�a�t�e�s�_�t�o�t�a�l� �<�=� �4�)� �r�e�t�u�r�n� �0�;�
�
� � � � � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�h�i�g�h�,�t�r�u�e�)�;� � � � �
�
� � � � � � �A�r�r�a�y�S�e�t�A�s�S�e�r�i�e�s�(�l�o�w�,�t�r�u�e�)�;�
�
� � � � � � �i�n�t� �l�i�m�i�t� �=� �r�a�t�e�s�_�t�o�t�a�l� �-� �p�r�e�v�_�c�a�l�c�u�l�a�t�e�d�;�
�
� � � � � � �i�f� �(�l�i�m�i�t� �=�=� �0�)� � � � � � � � �{� � � �/�/� �@8H5; �=>2K9 �B8: �
�
� � � � � � �}� �e�l�s�e� �i�f� �(�l�i�m�i�t� �=�=� �1�)� �{� � � �/�/� �1@07>20;AO �=>2K9 �10@
�
� � � � � � � � � �p�r�i�c�e�[�1�]� �=� �(�h�i�g�h�[�1�]� �+� �l�o�w�[�1�]�)� �/� �2�;�
�
� � � � � � � � � �H�i�l�b�e�r�t�(�1�)�;�
�
� � � � � � � � � �G�e�t�V�a�l�u�e�(�h�i�g�h�,� �l�o�w�,� �1�)�;� � � � � � �
�
� � � � � � � � � �r�e�t�u�r�n�(�r�a�t�e�s�_�t�o�t�a�l�)�;� � � � � � � � � � � � �
�
� � � � � � �}� �e�l�s�e� �i�f� �(�l�i�m�i�t� �>� �1�)� � �{� � � �/�/� �5@2K9 �2K7>2 �8=48:0B>@0,� �A<5=0 �B09<D@59<0,� �?>43@C7:0 �40==KE �87 �8AB>@88
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�s�n�r�,� � � �E�M�P�T�Y�_�V�A�L�U�E�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�c�f�,� � � � �0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�q�3�,� � � � �0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�n�o�i�s�e�,� �0�)�;�
�
� � � � � � � � � �
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�S�m�o�o�t�h�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�D�e�t�r�e�n�d�e�r�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�I�1�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�Q�1�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�j�I�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�j�Q�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�I�2�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�Q�2�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�R�e�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�I�m�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�P�e�r�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�S�m�o�o�t�h�P�e�r�i�o�d�,�0�)�;�
�
� � � � � � � � � �A�r�r�a�y�I�n�i�t�i�a�l�i�z�e�(�p�r�i�c�e�,�0�)�;�
�
� � � � � � � � � �
�
� � � � � � � � � �l�i�m�i�t� �=� �r�a�t�e�s�_�t�o�t�a�l� �-� �M�I�N�B�A�R�;�
�
� � � � � � � � � �f�o�r�(�i�n�t� �i� �=� �l�i�m�i�t�;� �i� �>�=� �1� �&�&� �!�I�s�S�t�o�p�p�e�d�(�)�;� �i�-�-�)�{�
�
� � � � � � � � � � � � �p�r�i�c�e�[�i�]� �=� �(�h�i�g�h�[�i�]� �+� �l�o�w�[�i�]�)� �/� �2�;�
�
� � � � � � � � � � � � �H�i�l�b�e�r�t�(�i�)�;�
�
� � � � � � � � � � � � �G�e�t�V�a�l�u�e�(�h�i�g�h�,� �l�o�w�,� �i�)�;�
�
� � � � � � � � � �}�/�/�f�o�r�(�i�n�t� �i� �=� �l�i�m�i�t� �+� �1�;� �i� �>�=� �0� �&�&� �!�I�s�S�t�o�p�p�e�d�(�)�;� �i�-�-�)�
�
� � � � � � � � � �r�e�t�u�r�n�(�r�a�t�e�s�_�t�o�t�a�l�)�;� � � � � � � � � �
�
� � � � � � �}�
�
� � � � � � �p�r�i�c�e�[�0�]� �=� �(�h�i�g�h�[�0�]� �+� �l�o�w�[�0�]�)� �/� �2�;�
�
� � � � � � �H�i�l�b�e�r�t�(�0�)�;�
�
� � � � � � �G�e�t�V�a�l�u�e�(�h�i�g�h�,� �l�o�w�,� �0�)�;� � � � � � � � � � �
�
� � � � � � � � � � � � � � � � �
�
� � � �r�e�t�u�r�n�(�r�a�t�e�s�_�t�o�t�a�l�)�;�
�
�}�
�
�
�
�d�o�u�b�l�e� �Z�e�r�r�o�I�f�E�m�p�t�y�(�d�o�u�b�l�e� �v�a�l�u�e�)� �{�
�
� � � �i�f� �(�v�a�l�u�e� �>�=� �E�M�P�T�Y�_�V�A�L�U�E� �|�|� �v�a�l�u�e� �<�=� �-�E�M�P�T�Y�_�V�A�L�U�E�)� �r�e�t�u�r�n� �0�.�0�;�
�
� � � �r�e�t�u�r�n� �v�a�l�u�e�;�
�
�}�
�
�
�
�
�
�v�o�i�d� �H�i�l�b�e�r�t�(�i�n�t� �i�)� �{�
�
� � � � � � � � � �S�m�o�o�t�h�[�i�]� �=� �(�4� �*� �p�r�i�c�e�[�i�]� �+� �3� �*� �p�r�i�c�e�[�i� �+� �1�]� �+� �2� �*� �p�r�i�c�e�[�i� �+� �2�]� �+� �p�r�i�c�e�[�i� �+� �3�]�)� �/� �1�0�;�
�
� � � � � � � � � �D�e�t�r�e�n�d�e�r�[�i�]� �=� �(�0�.�0�9�6�2� �*� �S�m�o�o�t�h�[�i�]� � � � � � � � �+� �0�.�5�7�6�9� �*� �S�m�o�o�t�h�[�i� �+� �2�]� � � � � �-� �
�
� � � � � � � � � � � � � � � � � � � � � � � � � �0�.�5�7�6�9� �*� �S�m�o�o�t�h�[�i� �+� �4�]� � � � �-� �0�.�0�9�6�2� �*� �S�m�o�o�t�h�[�i� �+� �6�]�)� � � � �*� �(�0�.�0�7�5� �*� �P�e�r�[�i� �+� �1�]� �+� �0�.�5�4�)�;�
�
�/�/�I�n�P�h�a�s�e� �a�n�d� �Q�u�a�d�r�a�t�u�r�e� �c�o�m�p�o�n�e�n�t�s� � � � � � � � � � � � � � � � � � � � � � � � � �
�
�	�	�	�Q�1�[�i�]� � � � � � � � �=� �(�0�.�0�9�6�2� �*� �D�e�t�r�e�n�d�e�r�[�i�]� � � � � �+� �0�.�5�7�6�9� �*� �D�e�t�r�e�n�d�e�r�[�i� �+� �2�]� � �-� �
�
�	�	�	� � � � � � � � � � � � � � � � �0�.�5�7�6�9� �*� �D�e�t�r�e�n�d�e�r�[�i� �+� �4�]� �-� �0�.�0�9�6�2� �*� �D�e�t�r�e�n�d�e�r�[�i� �+� �6�]�)� �*� �(�0�.�0�7�5� �*� �P�e�r�[�i� �+� �1�]� �+� �0�.�5�4�)�;�	�	�	� �
�
�	�	�	�I�1�[�i�]� � � � � � � � �=� �D�e�t�r�e�n�d�e�r�[�i� �+� �3�]�;� � � � �
�
�/�/�A�d�v�a�n�c�e� �t�h�e� �p�h�a�s�e� �o�f� �I�1� �a�n�d� �Q�1� �b�y� �9�0� �d�e�g�r�e�e�s� �
�
�	�	�	�j�I�[�i�]� � � � � � � � �=� �(�0�.�0�9�6�2� �*� �I�1�[�i�]� � � � � � � � � � � � �+� �0�.�5�7�6�9� �*� �I�1�[�i� �+� �2�]� � � � � � � � � �-� �
�
�	�	�	� � � � � � � � � � � � � � � � �0�.�5�7�6�9� �*� �I�1�[�i� �+� �4�]� � � � � � � � �-� �0�.�0�9�6�2� �*� �I�1�[�i� �+� �6�]�)� � � � � � � � �*� �(�0�.�0�7�5� �*� �P�e�r�[�i� �+� �1�]� �+� �0�.�5�4�)�;� �
�
�	�	�	�j�Q�[�i�]� � � � � � � � �=� �(�0�.�0�9�6�2� �*� �Q�1�[�i�]� � � � � � � � � � � � �+� �0�.�5�7�6�9� �*� �Q�1�[�i� �+� �2�]� � � � � � � � � �-�
�
�	�	�	� � � � � � � � � � � � � � � � �0�.�5�7�6�9� �*� �Q�1�[�i� �+� �4�]� � � � � � � � �-� �0�.�0�9�6�2� �*� �Q�1�[�i� �+� �6�]�)� � � � � � � � �*� �(�0�.�0�7�5� �*� �P�e�r�[�i� �+� �1�]� �+� �0�.�5�4�)�;� �	�
�
�/�/�P�h�a�s�o�r� �A�d�d�i�t�i�o�n� �
�
�	�	�	�I�2�[�i�]� � � � � � � � �=� � �I�1�[�i�]� �-� �j�Q�[�i�]�;� �
�
�	�	�	�Q�2�[�i�]� � � � � � � � �=� � �Q�1�[�i�]� �+� �j�I�[�i�]�;� �	�
�
�/�/�S�m�o�o�t�h� �t�h�e� �I� �a�n�d� �Q� �c�o�m�p�o�n�e�n�t�s� �b�e�f�o�r�e� �a�p�p�l�y�i�n�g� �t�h�e� �d�i�s�c�r�i�m�i�n�a�t�o�r� �
�
�	�	�	�I�2�[�i�]� � � � � � � � �=� � �0�.�2� �*� �I�2�[�i�]� �+� �0�.�8� �*� �I�2�[�i� � �+� �1�]�;� �
�
�	�	�	�Q�2�[�i�]� � � � � � � � �=� � �0�.�2� �*� �Q�2�[�i�]� �+� �0�.�8� �*� �Q�2�[�i� � �+� �1�]�;� �	�	�
�
�/�/�H�o�m�o�d�y�n�e� �D�i�s�c�r�i�m�i�n�a�t�o�r� �
�
�	�	�	�R�e�[�i�]� � � � � � � � �=� �I�2�[�i�]� �*� �I�2�[�i�]� � � � � � �+� �Q�2�[�i�]� �*� �Q�2�[�i� �+� �1�]�;� �
�
�	�	�	�I�m�[�i�]� � � � � � � � �=� �I�2�[�i�]� �*� �Q�2�[�i� �+� �1�]� � �-� �Q�2�[�i�]� �*� �I�2�[�i� �+� �1�]�;� �
�
�	�	�	�R�e�[�i�]� � � � � � � � �=� �0�.�2� � � �*� �R�e�[�i�]� � � � � � �+� �0�.�8� � � �*� �R�e�[�i� �+� �1�]�;� �
�
�	�	�	�I�m�[�i�]� � � � � � � � �=� �0�.�2� � � �*� �I�m�[�i�]� � � � � � �+� �0�.�8� � � �*� �I�m�[�i� �+� �1�]�;� �	�	�
�
�	�	�	�
�
�	�	�	�i�f�(�I�m�[�i�]�!�=�0� �&�&� �R�e�[�i�]�!�=�0�)� � � � � � � �P�e�r�[�i�]� � � � � �=� �2� �*� �M�_�P�I� � �/� �(�M�a�t�h�A�r�c�t�a�n�(�I�m�[�i�]� �/� �R�e�[�i�]�)� �)�;� �	�	�
�
�	�	�	�e�l�s�e� � � � � � � � � � � � � � � � � � � � � � � � � � � �P�e�r�[�i�]� � � � � �=� �0�;� �
�
�	�	�	�i�f�(�P�e�r�[�i�]� �>� �1�.�5� � �*� �P�e�r�[�i� �+� �1�]�)� �P�e�r�[�i�]� � � � � �=� �1�.�5� � �*� �P�e�r�[�i� �+� �1�]�;� �	�	�	� �
�
�	�	�	�i�f�(�P�e�r�[�i�]� �<� �0�.�6�7� �*� �P�e�r�[�i� �+� �1�]�)� �P�e�r�[�i�]� � � � � �=� �0�.�6�7� �*� �P�e�r�[�i� �+� �1�]�;� �	�	�	� �
�
�	�	�	�i�f�(�P�e�r�[�i�]� �<� �6�)� � � � � � � � � � � � � � � � � �P�e�r�[�i�]� � � � � �=� �6�;� �	�	�	� �
�
�	�	�	�i�f�(�P�e�r�[�i�]� �>� �5�0�)� � � � � � � � � � � � � � � � �P�e�r�[�i�]� � � � � �=� �5�0�;� �	�	�
�
�
�
�	�	�	�P�e�r�[�i�]� � � � � � � � � � �=� �0�.�2� � �*� �P�e�r�[�i�]� �+� �0�.�8� � �*� �P�e�r�[�i� �+� �1�]�;� �
�
�	�	�	�S�m�o�o�t�h�P�e�r�i�o�d�[�i�]� �=� �0�.�3�3� �*� �P�e�r�[�i�]� �+� �0�.�6�7� �*� �S�m�o�o�t�h�P�e�r�i�o�d�[�i� �+� �1�]�;� �	�	�
�
�
�
�}�/�/� �v�o�i�d� �H�i�l�b�e�r�t�(�i�)�

Comments