Find k nearest neighbours.
Finds the nearest k points for every point of the input data.
find_nn_k(X, k, iLLE = FALSE)
X |
matrix object containing the input data. |
k |
number of neighbours. |
iLLE |
a logical values indicating wheater to use improved LLE. See |
neighbours |
matrix with N rows and columns. If x_j is a neighbour of x_i then neighbours[i,j] is one, else zero. |
data( lle_scurve_data ) X <- lle_scurve_data neighbours <- find_nn_k( X, 5 ) table( rowSums( neighbours ) )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.