Compute a smoother matrix using adaptive bandwidth based on the k nearest neighbors. The bandwidth at each point is the distance to the k-th nearest neighbor.
Examples
tt <- seq(0, 1, length.out = 50)
S <- S.KNN(tt, knn = 10)
Compute a smoother matrix using adaptive bandwidth based on the k nearest neighbors. The bandwidth at each point is the distance to the k-th nearest neighbor.
tt <- seq(0, 1, length.out = 50)
S <- S.KNN(tt, knn = 10)