#NEWLINE# def check_rbf3d_interpolation( function ) : #NEWLINE# #INDENT# x = ( ( random . rand ( 50 , 1 ) * 4 ) - 2 ) #NEWLINE# y = ( ( random . rand ( 50 , 1 ) * 4 ) - 2 ) #NEWLINE# z = ( ( random . rand ( 50 , 1 ) * 4 ) - 2 ) #NEWLINE# d = ( x * exp ( ( ( - ( x ** 2 ) ) - ( y ** 2 ) ) ) ) #NEWLINE# rbf = Rbf ( x , y , z , d , epsilon = 2 , function = function ) #NEWLINE# di = rbf ( x , y , z ) #NEWLINE# di . shape = x . shape #NEWLINE# assert_array_almost_equal ( di , d )