ker ( ) :

, . 0 1. , , :
>>> ker[0:5, 0:5]
array([[ 1.592e+001, 3.070e-021, 2.203e-086, 5.879e-195, 0.000e+000],
[ 3.070e-021, 5.921e-043, 4.248e-108, 1.134e-216, 0.000e+000],
[ 2.203e-086, 4.248e-108, 3.048e-173, 8.136e-282, 0.000e+000],
[ 5.879e-195, 1.134e-216, 8.136e-282, 0.000e+000, 0.000e+000],
[ 0.000e+000, 0.000e+000, 0.000e+000, 0.000e+000, 0.000e+000]])
15.915, , ker [0, 0]. , , .
, . , .
, , mu=0, i j -U // 2 U // 2. U -0,5 0,5.
import numpy as np
import matplotlib.pyplot as plt
U = 60
m = np.linspace(-0.5, 0.5, U)
delta = m[1] - m[0]
(x, y) = np.meshgrid(m, m)
sigma = 0.1
norm_constant = 1 / (2 * np.pi * sigma**2)
rhs = np.exp(-.5 * (x**2 + y**2) / sigma**2)
ker = norm_constant * rhs
print(ker.sum() * delta**2)
plt.contour(x, y, ker)
plt.axis('equal')
plt.show()
, 1.0, mu=0, .

, (-0,5 0,5) . , sigma = 2, , , . - - -5 * sigma - 5 * sigma - .