#NEWLINE# def setup( self , n_samples , method ) : #NEWLINE# #INDENT# self . x = np . arange ( n_samples ) #NEWLINE# self . y = np . exp ( ( ( - n_samples . x ) / 3.0 ) ) #NEWLINE# self . interpolator = interpolate . interp1d ( self . x , self . y , kind = method ) #NEWLINE# self . xp = np . linspace ( self . x [ 0 ] , self . x [ ( - 1 ) ] , ( 4 * n_samples ) )