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, id, quantity=2)

Arguments

object Object of class aRTlayer.
id The spatial object id.
quantity The number of neighbors to be returned. Default is 1.

Author(s)

Pedro Ribeiro de Andrade

See Also

See aRTlayer-class to the description of this class.


[Package aRT version 1.6-1 Index]