find_nn_eps: Find nearest neighbours in epsilon environment.

Description Usage Arguments Details Value See Also Examples

Description

Finds the nearest points for every point in an environment with radius eps.

Usage

1
 find_nn_eps(X, eps) 

Arguments

X

matrix object containing the input data.

eps

size of epsilon environment around x_i.

Details

A good value for eps strongly depends on the scaling of the data. Therefore we recommend to use the R function scale.

Value

neighbours

matrix with N rows and columns. If distance between x_i and x_i is smaller than eps, neighbours[i,j] is one, else zero.

See Also

find_nn_k

Examples

1
2
3
4
	data( lle_scurve_data )
	X <- lle_scurve_data
	neighbours <- find_nn_eps( X, 0.5 )
	table( rowSums(neighbours) )

Example output

Loading required package: scatterplot3d
Loading required package: MASS
Loading required package: snowfall
Loading required package: snow

 2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 
 1  1  5  8 15 32 43 56 79 71 90 83 76 73 50 30 29 22  9 11  6  7  3 

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

Related to find_nn_eps in lle...