Helper function; this calculates the kernel matrix
Kern.FUN(zz, zi, bw)
zz
zi
bw
bandwidth
the kernel matrix
Layla Parast