#NEWLINE# @ property #NEWLINE# def kernel_var( self ) : #NEWLINE# #INDENT# 'Returns the second moment of the kernel' #NEWLINE# if ( self . _kernel_var is None ) : #NEWLINE# #INDENT# func = ( lambda x : ( ( ( x ** 2 ) * self . norm_const ) * self . _shape ( x ) ) ) #NEWLINE# if ( self . domain is None ) : #NEWLINE# #INDENT# self . _kernel_var = scipy . integrate . quad ( func , ( - inf ) , inf ) [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _kernel_var = scipy . integrate . quad ( func , self . domain [ 0 ] , self . domain [ 1 ] ) [ 0 ] #NEWLINE# #UNINDENT# #UNINDENT# return func . _kernel_var