aRTlayer-getNN {aRT}R Documentation

Get Nearest Neighbors

Description

Function that returns the nearest neighbours of an object, based on the Euclidean distances.

Usage

## S4 method for signature 'aRTlayer':
getNN(object, layer=object, ID, quantity=1)

Arguments

object Object of class aRTlayer.
layer Object of class aRTlayer. The returned IDs belong to this layer.
ID The spatial object id of an object belonging to object.
quantity The number of neighbors to be returned.

Author(s)

Pedro Ribeiro de Andrade

See Also

See aRTlayer-class to the description of this class.


[Package aRT version 1.7-1 Index]