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