def flattop(M, sym=True):
 if _len_guards(M):
  return np.ones(M)
 (M, needs_trunc) = _extend(M, sym)
 a = [0.21557895, 0.41663158, 0.277263158, 0.083578947, 0.006947368]
 w = _cos_win(M, a)
 return _truncate(w, needs_trunc)

def flattop ( M , sym = True ) : if _len_guards ( M ) : return np . ones ( M ) ( M , needs_trunc ) = _extend ( M , sym ) a = [ 0.21557895 , 0.41663158 , 0.277263158 , 0.083578947 , 0.006947368 ] w = _cos_win ( M , a ) return _truncate ( w , needs_trunc )
return a flat top window .