#NEWLINE# def test_definition( self ) : #NEWLINE# #INDENT# for n in [ 16 , 17 , 64 , 127 ] : #NEWLINE# #INDENT# x = ( ( ( arange ( n ) * 2 ) * pi ) / n ) #NEWLINE# y = ihilbert ( sin ( x ) ) #NEWLINE# y1 = direct_ihilbert ( sin ( x ) ) #NEWLINE# assert_array_almost_equal ( y , y1 ) #NEWLINE# assert_array_almost_equal ( ihilbert ( sin ( ( 2 * x ) ) ) , direct_ihilbert ( sin ( ( 2 * x ) ) ) )