1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Analysis of a tapering function

Discussão em 'Python' iniciado por Stack, Novembro 24, 2025.

  1. Stack

    Stack Membro Participativo

    On Window function - Wikipedia tapering functions are plotted using two different styles. One shows curve (samples) and the other Fourier transform (bins).

    I've prepared two tapering functions based on Tanh() -functions.

    def tanh_taper(N, x, c):
    if x < 0:
    v = 0.0
    if 0 <= x <= N/2:
    v = math.tanh(c * x)
    elif N/2 < x < N:
    v = math.tanh(-c * x + N * c)
    else:
    v = 0.0
    return v

    def tanh_taper_inverted(N, x, c):
    if x < 0:
    v = 1.0
    elif 0 <= x <= N/2:
    v = math.tanh(-c * x) + 1.0
    elif N/2 < n < N:
    v = math.tanh(c * x - N * c) + 1.0
    else:
    v = 1.0
    return v


    How do I get the Fourier transform -type plot (using Python)?

    Continue reading...

Compartilhe esta Página