def qmf(hk):
 N = (len(hk) - 1)
 asgn = [{0: 1, 1: (-1)}[(k % 2)] for k in range((N + 1))]
 return (hk[::(-1)] * np.array(asgn))

def qmf ( hk ) : N = ( len ( hk ) - 1 ) asgn = [ { 0 : 1 , 1 : ( - 1 ) } [ ( k % 2 ) ] for k in range ( ( N + 1 ) ) ] return ( hk [ : : ( - 1 ) ] * np . array ( asgn ) )
return high-pass qmf filter from low-pass parameters hk : array_like coefficients of high-pass filter .