kernel_knn_weights function

K-NN Kernel Spatial Weights