+
    [°³jÛ  ã                   ó˜   € R t ^ RIt^ RIt^ RIHt ^RIHtHtH	t	 . ROt
RtR tR tR tR tR	 tRR
 ltRR ltRR ltRR ltR tR tR# )z"
Other wavelet related functions.
N)Úfft)ÚContinuousWaveletÚDiscreteContinuousWaveletÚWaveletzT`{old}` has been renamed to `{new}` and will be removed in a future version of pywt.c                 óB   € \         P                  ! V 4      pW!,          pV# )N)ÚnpÚcumsum)ÚarrÚstepÚintegrals   && ÚP/home/luca/screen-checking/.venv/lib/python3.14/site-packages/pywt/_functions.pyÚ
_integrater      s   € Ü�yŠy˜‹~€HØÕ€HØ€Oó    c                  ó|   € \         P                  R RR7      p\        P                  ! V\        4       \        V / VB # )ÚintwaveÚintegrate_wavelet©ÚoldÚnew)Ú_DEPRECATION_MSGÚformatÚwarningsÚwarnÚDeprecationWarningr   ©ÚargsÚkwargsÚmsgs   *, r   r   r   "   s7   € Ü
×
!Ñ
! iÐ5HÐ
!Ó
I€CÜ‡M‚M�#Ô)Ô*Ü˜dÐ- fÑ-Ð-r   c                  ó|   € \         P                  R RR7      p\        P                  ! V\        4       \        V / VB # )ÚcentrfrqÚcentral_frequencyr   )r   r   r   r   r   r    r   s   *, r   r   r   (   s7   € Ü
×
!Ñ
! jÐ6IÐ
!Ó
J€CÜ‡M‚M�#Ô)Ô*Ü˜dÐ- fÑ-Ð-r   c                  ó|   € \         P                  R RR7      p\        P                  ! V\        4       \        V / VB # )Úscal2frqÚscale2frequencyr   )r   r   r   r   r   r#   r   s   *, r   r"   r"   .   s7   € Ü
×
!Ñ
! jÐ6GÐ
!Ó
H€CÜ‡M‚M�#Ô)Ô*Ü˜DÐ+ FÑ+Ð+r   c                  ó|   € \         P                  R RR7      p\        P                  ! V\        4       \        V / VB # )ÚorthfiltÚorthogonal_filter_bankr   )r   r   r   r   r   r&   r   s   *, r   r%   r%   4   s7   € Ü
×
!Ñ
! jÐ6NÐ
!Ó
O€CÜ‡M‚M�#Ô)Ô*Ü! 4Ð2¨6Ñ2Ð2r   c                ó  € \        V 4      \        \        39   d   Rp\        P                  ! V\
        4       M'\        V \        \        34      '       g   \        V 4      p \        V 4      \        \        39   d^   \        P                  ! V ^ ,          4      \        P                  ! V ^,          4      rCV^,          V^ ,          ,
          p\        W54      V3# V P                  V4      p\        V4      ^8X  d)   Vw  r4V^,          V^ ,          ,
          p\        W54      V3# \        V4      ^8X  d*   Vw  rspV^,          V^ ,          ,
          p\        W54      V3# Vw  r‰r«pV^,          V^ ,          ,
          p\        W•4      \        Wµ4      V3# )a  
Integrate `psi` wavelet function from -Inf to x using the rectangle
integration method.

Parameters
----------
wavelet : Wavelet instance or str
    Wavelet to integrate.  If a string, should be the name of a wavelet.
precision : int, optional
    Precision that will be used for wavelet function
    approximation computed with the wavefun(level=precision)
    Wavelet's method (default: 8).

Returns
-------
[int_psi, x] :
    for orthogonal wavelets
[int_psi_d, int_psi_r, x] :
    for other wavelets


Examples
--------
>>> from pywt import Wavelet, integrate_wavelet
>>> wavelet1 = Wavelet('db2')
>>> [int_psi, x] = integrate_wavelet(wavelet1, precision=5)
>>> wavelet2 = Wavelet('bior1.3')
>>> [int_psi_d, int_psi_r, x] = integrate_wavelet(wavelet2, precision=5)

z^Integration of a general signal is deprecated and will be removed in a future version of pywt.)ÚtypeÚtupleÚlistr   r   r   Ú
isinstancer   r   r   r   Úasarrayr   ÚwavefunÚlen)ÚwaveletÚ	precisionr   ÚpsiÚxr
   Úfunctions_approximationsÚphiÚphi_dÚpsi_dÚphi_rÚpsi_rs   &&          r   r   r   :   sO  € ôB ˆGƒ}œ¤˜Ô%ðBˆä�Š�cÔ-Õ.Ü˜¤'Ô+<Ð!=×>Ò>Ü+¨GÓ4ˆäˆGƒ}œ¤˜Ô%Ü—’˜G A�JÓ'¬¯ª°G¸AµJÓ)?ˆQØ��t�a˜•d�{ˆÜ˜#Ó$ aÐ'Ð'à&Ÿ™¨yÓ9Ðä
Ð#Ó$¨Ô)Ø)‰ˆØ��t�a˜•d�{ˆÜ˜#Ó$ aÐ'Ð'ä	Ð%Ó	&¨!Ô	+Ø.‰ˆ�!Ø��t�a˜•d�{ˆÜ˜#Ó$ aÐ'Ð'ð )AÑ%ˆ�e AØ��t�a˜•d�{ˆÜ˜%Ó&¬
°5Ó(?ÀÐBÐBr   c                ó  € \        V \        \        34      '       g   \        V 4      p V P	                  V4      p\        V4      ^8X  d   Vw  r4MV^,          VR,          rC\        VR,          V^ ,          ,
          4      pV^ 8”  g   Q h\        P                  ! \        \        V4      R,          4      4      ^,           pV\        V4      ^,          8”  d   \        V4      V,
          ^,           pRWV^,
          ,          ,          # )a�  
Computes the central frequency of the `psi` wavelet function.

Parameters
----------
wavelet : Wavelet instance, str or tuple
    Wavelet to integrate.  If a string, should be the name of a wavelet.
precision : int, optional
    Precision that will be used for wavelet function
    approximation computed with the wavefun(level=precision)
    Wavelet's method (default: 8).

Returns
-------
scalar

:é   NNg      ð?éÿÿÿÿ)r+   r   r   r   r-   r.   Úfloatr   ÚargmaxÚabsr   )r/   r0   r3   r1   r2   ÚdomainÚindexs   &&     r   r    r    y   sÒ   € ô& �g¤Ô):Ð;×<Ò<Ü+¨GÓ4ˆà&Ÿ™¨yÓ9Ðä
Ð#Ó$¨Ô)Ø)‰ˆˆQð *¨!Õ,Ð.FÀrÕ.JˆQä�1�R•5˜1˜Q�4•<Ó €FØ�AŒ:Ðˆ:ä�IŠI”cœ#˜c›( 2�,Ó'Ó(¨1Õ,€EØŒs�3‹x˜!�|ÔÜ�C“˜5Õ  1Õ$ˆà�& A�IÕ&Õ'Ð'r   c                ó(   € \        WR7      V,          # )aR  Convert from CWT "scale" to normalized frequency.

Parameters
----------
wavelet : Wavelet instance or str
    Wavelet to integrate.  If a string, should be the name of a wavelet.
scale : scalar
    The scale of the CWT.
precision : int, optional
    Precision that will be used for wavelet function approximation computed
    with ``wavelet.wavefun(level=precision)``.  Default is 8.

Returns
-------
freq : scalar
    Frequency normalized to the sampling frequency. In other words, for a
    sampling interval of `dt` seconds, the normalized frequency of 1.0
    corresponds to (`1/dt` Hz).

©r0   ©r    )r/   Úscaler0   s   &&&r   r#   r#   ¢   s   € ô* ˜WÔ:¸UÕBÐBr   c                ó(   € \        WR7      V,          # )aæ  Convert from to normalized frequency to CWT "scale".

Parameters
----------
wavelet : Wavelet instance or str
    Wavelet to integrate.  If a string, should be the name of a wavelet.
freq : scalar
    Frequency, normalized so that the sampling frequency corresponds to a
    value of 1.0.
precision : int, optional
    Precision that will be used for wavelet function approximation computed
    with ``wavelet.wavefun(level=precision)``.  Default is 8.

Returns
-------
scale : scalar

rB   rC   )r/   Úfreqr0   s   &&&r   Úfrequency2scalerG   ¹   s   € ô& ˜WÔ:¸TÕAÐAr   c                ó`   € \         P                  ! V 4      RRR1,          pVR,          ) VR&   V# )a4  
Returns the Quadrature Mirror Filter(QMF).

The magnitude response of QMF is mirror image about `pi/2` of that of the
input filter.

Parameters
----------
filt : array_like
    Input filter for which QMF needs to be computed.

Returns
-------
qm_filter : ndarray
    Quadrature mirror of the input filter.

N:r:   Né   r;   )r   Úarray)ÚfiltÚ	qm_filters   & r   ÚqmfrM   Î   s0   € ô$ —’˜“™t ˜tÕ$€IØ  •Ð&€Iˆd�OØÐr   c                óT  € \        V 4      ^,          ^ 8X  g   \        R4      h\        P                  ! V \        P                  R7      p \        P
                  ! ^4      V ,          \        P                  ! V 4      ,          pVRRR1,          p\        V4      pVRRR1,          pW$W3pV# )aì  
Returns the orthogonal filter bank.

The orthogonal filter bank consists of the HPFs and LPFs at
decomposition and reconstruction stage for the input scaling filter.

Parameters
----------
scaling_filter : array_like
    Input scaling filter (father wavelet).

Returns
-------
orth_filt_bank : tuple of 4 ndarrays
    The orthogonal filter bank of the input scaling filter in the order :
    1] Decomposition LPF
    2] Decomposition HPF
    3] Reconstruction LPF
    4] Reconstruction HPF

z'`scaling_filter` length has to be even.)ÚdtypeNr;   )r.   Ú
ValueErrorr   r,   Úfloat64ÚsqrtÚsumrM   )Úscaling_filterÚrec_loÚdec_loÚrec_hiÚdec_hiÚorth_filt_banks   &     r   r&   r&   å   s‰   € ô, �Ó !Õ# qÔ(ÜÐBÓCÐCä—Z’Z ´b·j±jÔA€Nä�WŠW�Q‹Z˜.Õ(¬2¯6ª6°.Ó+AÕA€FØ‘D�b�D�\€Fä�‹[€FØ‘D�b�D�\€Fà fÐ5€NØÐr   )
r   r    r#   rG   rM   r&   r   r   r"   r%   )é   )Ú__doc__r   Únumpyr   Ú	numpy.fftr   Ú_extensions._pywtr   r   r   Ú__all__r   r   r   r   r"   r%   r   r    r#   rG   rM   r&   © r   r   Ú<module>ra      sf   ðñó
 ã Ý ç TÑ Tò:€ð>Ð òò.ò.ò,ò3ô<Cô~&(ôRCô.Bò*ô."r   