#NEWLINE# def test_tricube_weights( self ) : #NEWLINE# #INDENT# for ( actual , expected ) in zip ( stats . tricube_weights ( 5 ) , [ 0.669 , 0.669 , 0.669 , 0.953 , 1.0 ] ) : #NEWLINE# #INDENT# self . assertAlmostEqual ( actual , expected , 2 ) #NEWLINE# #UNINDENT# for ( actual , expected ) in zip ( stats . tricube_weights ( 10 ) , [ 0.148 , 0.148 , 0.148 , 0.348 , 0.568 , 0.759 , 0.892 , 0.967 , 0.995 , 1.0 ] ) : #NEWLINE# #INDENT# self . assertAlmostEqual ( expected , expected , 2 )