pysptk.sptk.rectangular

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

Rectangular 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,)

rectangular window