Skip to content
Snippets Groups Projects
Commit e84f4af3 authored by Dominique Benielli's avatar Dominique Benielli
Browse files

work in python 12 with cython generation

parent 29eb76b1
Branches
Tags
No related merge requests found
Showing
with 153899 additions and 98304 deletions
......@@ -93,4 +93,5 @@ LtfatPyt.egg-info/
.cache/
dist/
MANIFEST
.venv/
......@@ -171,4 +171,4 @@ __all__ = ["arg_firwin", "assert_groworder", "assert_sigreshape_post",
"long2fir", "normalize", "rms", "thresh", "lcm", "postpad"]
__version__ = "1.0.16"
__version__ = "1.0.17"
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -102,7 +102,7 @@ def dft(f, N=None, dim=0):
\\sum_{l=0}^{L-1}f\\left(l+1\\right)e^{-2\\pi ikl/L}
for :math:`k=0,\ldots,L-1`.
for :math:`k=0,\\ldots, L-1`.
The output of :func:`~ltfatpy.fourier.dft.dft` is a scaled version of the
output from :func:`numpy.fft.fft`. The function takes the same first three
......
......@@ -103,7 +103,7 @@ def dstii(f, L=None, dim=None):
The transform is real (output is real if input is real) and orthonormal.
The inverse transform of \|dstii\| is \|dstiii\|.
The inverse transform of \\|dstii\| is \\|dstiii\|.
Let **f** be a signal of length **L**, let ``c=dstii(f)`` and define the
vector **w** of length **L** by
......
......@@ -103,7 +103,7 @@ def dstiii(f, L=None, dim=None):
The transform is real (output is real if input is real) and orthonormal.
The inverse transform of \|dstiii\| is \|dstii\|.
The inverse transform of \\|dstiii\\| is \\|dstii\\|.
Let **f** be a signal of length **L**, let ``c=dstiii(f)`` and define the
vector **w** of length **L** by
......
......@@ -104,7 +104,7 @@ def idft(c, N=None, dim=0):
\\sum_{k=0}^{L-1}c\\left(k+1\\right)e^{2\\pi ikl/L}
for :math:`l=0,\ldots,L-1`.
for :math:`l=0, \\ldots, L-1`.
The output of :func:`~ltfatpy.fourier.idft.idft` is a scaled version of the
output from :func:`numpy.fft.ifft`. The function takes the same first three
......
......@@ -173,7 +173,7 @@ def dgt(f, g, a, M, L=None, pt='freqinv'):
c\\left(m+1,n+1\\right)=\\sum_{l=0}^{L-1}f(l+1)\\overline{g(l-an+1)}
e^{-2\\pi ilm/M}
where :math:`m=0,\ldots,M-1`, :math:`n=0,\ldots,N-1` and :math:`l-an`
where :math:`m=0,\ldots,M-1`, :math:`n=0, \\ldots,N-1` and :math:`l-an`
are computed modulo **L**.
- Additional parameters:
......
......@@ -103,7 +103,7 @@ def phaselock(c, a):
c(m+1,n+1) = sum f(l+1)*exp(-2*pi*i*m*(l-n*a)/M)*conj(g(l-a*n+1)),
l=0
.. math:: c\left(m+1,n+1\\right)=\sum_{l=0}^{L-1}f(l+1)
.. math:: c\\left(m+1,n+1\\right)=\sum_{l=0}^{L-1}f(l+1)
e^{-2\pi im(l-na)/M}\overline{g(l-an+1)},
where ``m = 0,..., M-1`` and ``n = 0,..., N-1`` and ``l-a*n`` are computed
......
......@@ -110,7 +110,7 @@ def firwin(name, M=0, x=None, **kwargs):
.. math::
g + \mbox{fftshift}(g) = \mathbf{1}_L
g + \\mbox{fftshift}(g) = \\mathbf{1}_L
A PU can only be formed if the window length is even, but some windows
may work for odd lengths anyway.
......
......@@ -105,13 +105,13 @@ def normalize(f, norm='2', dim=None):
default
``'energy'`` Normalize the energy of the signal to be *1*. This is
exactly the same as ``'2'``.
``'inf'`` Normalize the :math:`l^{\inf}` norm to be *1*.
``'inf'`` Normalize the :math:`l^{\\inf}` norm to be *1*.
``'peak'`` Normalize the peak value of the signal to be *1*.
This is exactly the same as ``'inf'``.
``'rms'`` Normalize the Root Mean Square (RMS) norm of the signal to
be *1*.
``'s0'`` Normalize the S0-norm to be *1*.
``'wav'`` Normalize to the :math:`l^{\inf}` norm to be *0.99* to
``'wav'`` Normalize to the :math:`l^{inf}` norm to be *0.99* to
avoid possible clipping introduced by the quantization
procedure when saving as a wav file. This only works with
floating point data types.
......
......@@ -105,7 +105,7 @@ def rms(f, ac=False, dim=None):
n=1
.. math::
rms(f) = \\frac{1}{\sqrt N} \left( \sum_{n=1}^N |f(n)|^2
rms(f) = \\frac{1}{\\sqrt N} \\left( \\sum_{n=1}^N |f(n)|^2
\\right)^{\\frac{1}{2}}
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment