powered by
Input a list of time points Lt, and the number of unique neighbors k. Obtain the minimum bandwidth guaranteeing k unique neighbours.
BwNN(Lt, k = 3, onlyMean = FALSE, onlyCov = FALSE)
n-by-1 list of vectors
number of unique neighbors for cov and mu (default = 3)
Indicator to return only the minimum bandwidth for the mean
Indicator to return only the minimum bandwidth for the covariance
tinyGrid = list(c(1,7), c(2,3), 6, c(2,4), c(4,5)) BwNN(tinyGrid, k = 2) # c(3,2)
Run the code above in your browser using DataLab