knneigh.vect: An auxiliary function of 'lofactor()'

Description Usage Arguments Details Value Author(s) References See Also

View source: R/LOF.R

Description

Function that returns the distance from a vector x to its k-nearest-neighbors in the matrix data

Usage

1

Arguments

x

An observation.

data

A data set that will be internally coerced into a matrix.

k

The number of neighbours.

Details

This function is strongly based on the code provided by Acuna et. al. (2009) for the previously available dprep package.

Value

A vector.

Author(s)

Luis Torgo ltorgo@dcc.fc.up.pt

References

Acuna, E., and Members of the CASTLE group at UPR-Mayaguez, (2009). dprep: Data preprocessing and visualization functions for classification. R package version 2.1.

Torgo, L. (2010) Data Mining using R: learning with case studies, CRC Press (ISBN: 9781439810187).

http://www.dcc.fc.up.pt/~ltorgo/DataMiningWithR

See Also

lofactor


DMwR documentation built on May 1, 2019, 9:17 p.m.