Ë
    '†¼iƒ  ã                   ó<   — d dl mZmZmZmZ d dlZdd„Zdd„Zdd„Zy)	é    )Úabsolute_importÚdivisionÚprint_functionÚunicode_literalsNc                 óJ   — t        j                  | «      t        | «      |z
  z  S )zÒ
    Args:
      x: iterable with len

      oneless: (default ``False``) reduces the length of the array for the
                division.

    Returns:
      A float with the average of the elements of x
    )ÚmathÚfsumÚlen)ÚxÚbessels     úT/var/www/app/trading-bot/venv/lib/python3.12/site-packages/backtrader/mathsupport.pyÚaverager      s   € ô 9‰9Q‹<œ3˜q›6 F™?Ñ+Ð+ó    c                 ó`   — |€t        | «      }| D cg c]  }t        ||z
  d«      ‘Œ c}S c c}w )zm
    Args:
      x: iterable with len

    Returns:
      A list with the variance for each element of x
    g       @)r   Úpow)r   ÚavgxÚys      r   Úvariancer   )   s1   € ð €|Üq‹zˆØ()Ö* 1ŒCD‘˜#ÕÒ*Ð*ùÒ*s   ’+c                 óV   — t        j                  t        t        | |«      |¬«      «      S )zé
    Args:
      x: iterable with len

      bessel: (default ``False``) to be passed to the average to divide by
      ``N - 1`` (Bessel's correction)

    Returns:
      A float with the standard deviation of the elements of x
    )r   )r   Úsqrtr   r   )r   r   r   s      r   Ústandarddevr   6   s!   € ô 9‰9”WœX a¨Ó.°vÔ>Ó?Ð?r   )F)N)NF)	Ú
__future__r   r   r   r   r   r   r   r   © r   r   ú<module>r      s$   ð÷**ó *ó ó,ó
+ô@r   