#NEWLINE# def epanechnikov_kernel( t , T , bandwidth = 1.0 ) : #NEWLINE# #INDENT# M = ( 0.75 * ( 1 - ( ( ( t - T ) / bandwidth ) ** 2 ) ) ) #NEWLINE# M [ ( abs ( ( t - T ) ) >= bandwidth ) ] = 0 #NEWLINE# return M