#NEWLINE# def test_response( self ) : #NEWLINE# #INDENT# N = 51 #NEWLINE# f = 0.5 #NEWLINE# h = firwin ( h , f ) #NEWLINE# self . check_response ( h , [ ( 0.25 , 1 ) , ( 0.75 , 0 ) ] ) #NEWLINE# h = firwin ( ( N + 1 ) , f , window = 'nuttall' ) #NEWLINE# self . check_response ( h , [ ( 0.25 , 1 ) , ( 0.75 , 0 ) ] ) #NEWLINE# h = firwin ( ( N + 2 ) , f , pass_zero = False ) #NEWLINE# self . check_response ( h , [ ( 0.25 , 0 ) , ( 0.75 , 1 ) ] ) #NEWLINE# ( f1 , f2 , f3 , f4 ) = ( 0.2 , 0.4 , 0.6 , 0.8 ) #NEWLINE# h = firwin ( ( N + 3 ) , [ f1 , f2 ] , pass_zero = False ) #NEWLINE# self . check_response ( h , [ ( 0.1 , 0 ) , ( 0.3 , 1 ) , ( 0.5 , 0 ) ] ) #NEWLINE# h = firwin ( ( N + 4 ) , [ f1 , f2 ] ) #NEWLINE# self . check_response ( h , [ ( 0.1 , 1 ) , ( 0.3 , 0 ) , ( 0.5 , 1 ) ] ) #NEWLINE# h = firwin ( ( N + 5 ) , [ f1 , f2 , f3 , f4 ] , pass_zero = False , scale = False ) #NEWLINE# self . check_response ( h , [ ( 0.1 , 0 ) , ( 0.3 , 1 ) , ( 0.5 , 0 ) , ( 0.7 , 1 ) , ( 0.9 , 0 ) ] ) #NEWLINE# h = firwin ( ( N + 6 ) , [ f1 , f2 , f3 , f4 ] ) #NEWLINE# self . check_response ( h , [ ( 0.1 , 1 ) , ( 0.3 , 0 ) , ( 0.5 , 1 ) , ( 0.7 , 0 ) , ( 0.9 , 1 ) ] ) #NEWLINE# h = firwin ( ( N + 7 ) , 0.1 , width = 0.03 ) #NEWLINE# self . check_response ( h , [ ( 0.05 , 1 ) , ( 0.75 , 0 ) ] ) #NEWLINE# h = firwin ( ( N + 8 ) , 0.1 , pass_zero = False ) #NEWLINE# self . check_response ( h , [ ( 0.05 , 0 ) , ( 0.75 , 1 ) ] )