#NEWLINE# def check_rbf1d_interpolation( function ) : #NEWLINE# #INDENT# x = linspace ( 0 , 10 , 9 ) #NEWLINE# y = sin ( x ) #NEWLINE# rbf = Rbf ( x , y , function = function ) #NEWLINE# yi = rbf ( x ) #NEWLINE# assert_array_almost_equal ( y , yi ) #NEWLINE# assert_almost_equal ( rbf ( float ( y [ 0 ] ) ) , y [ 0 ] )