#NEWLINE# @ property #NEWLINE# def L2Norm( self ) : #NEWLINE# #INDENT# 'Returns the integral of the square of the kernal from -inf to inf' #NEWLINE# if ( self . _L2Norm is None ) : #NEWLINE# #INDENT# L2Func = ( lambda x : ( ( self . norm_const * self . _shape ( x ) ) ** 2 ) ) #NEWLINE# if ( self . domain is None ) : #NEWLINE# #INDENT# self . _L2Norm = scipy . integrate . quad ( L2Func , ( - inf ) , inf ) [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _L2Norm = scipy . integrate . quad ( L2Func , self . domain [ 0 ] , self . domain [ 1 ] ) [ 0 ] #NEWLINE# #UNINDENT# #UNINDENT# return self . _L2Norm