filter.by.distance: Identify remote points

Description Usage Arguments Value Examples

Description

For a set of x and y coordinates, find the distance to the nearest neighbour. Extremely isolated points (outliers) are defined in the same way as in a boxplot: any points whose nearest-neighbour distance lies more than 1.5 x the IQR above the third quartile.

Usage

1

Arguments

pts

A two-column matrix containing the coordinates of the points to be compared.

plot

Boolean indicator: should the new set of features be displayed on a plot?

Value

A Boolean array of length n that can be used to filter points or angles. TRUE indicates that the point is particularly remote from its nearest neighbours; FALSE indicates that point is relatively close to its neighbours.

Examples

1
nn.filter <- filter.by.distance(centres, plot = T)

ClairBee/AS.preprocessing documentation built on May 6, 2019, 11:50 a.m.