pysptk.sptk.trapezoid

pysptk.sptk.trapezoid(n, normalize=1)

Trapezoid window

Parameters:

n : int

Window length

normalize : int, optional

Normalization flag
  1. don’t normalize
  2. normalize by power
  3. normalize by magnitude

Default is 1.

Returns:

w : array, shape (n,)

trapezoid window