find_nn_k: Find k nearest neighbours.

Description Usage Arguments Value See Also Examples

Description

Finds the nearest k points for every point of the input data.

Usage

1
 find_nn_k(X, k, iLLE = FALSE) 

Arguments

X

matrix object containing the input data.

k

number of neighbours.

iLLE

a logical values indicating wheater to use improved LLE. See lle.

Value

neighbours

matrix with N rows and columns. If x_j is a neighbour of x_i then neighbours[i,j] is one, else zero.

See Also

find_nn_eps

Examples

1
2
3
4
	data( lle_scurve_data )
	X <- lle_scurve_data
	neighbours <- find_nn_k( X, 5 )
	table( rowSums( neighbours ) )

lle documentation built on May 2, 2019, 2:49 p.m.

Related to find_nn_k in lle...