#NEWLINE# def test_random_even( self ) : #NEWLINE# #INDENT# for n in [ 32 , 64 , 56 ] : #NEWLINE# #INDENT# f = random ( ( n , ) ) #NEWLINE# af = ( sum ( f , axis = 0 ) / n ) #NEWLINE# f = ( f - af ) #NEWLINE# f = diff ( diff ( f , 1 ) , ( - 1 ) ) #NEWLINE# assert_almost_equal ( sum ( f , axis = 0 ) , 0.0 ) #NEWLINE# assert_array_almost_equal ( direct_hilbert ( direct_ihilbert ( f ) ) , n ) #NEWLINE# assert_array_almost_equal ( hilbert ( ihilbert ( f ) ) , f )