lof: Local Outlier Factor (LOF) values

Description Usage Arguments Value

View source: R/lof.R

Description

Calculates the local outlier factor (LOF) for multidimensional data

Usage

1
lof(x, k = 5, metric = "euclidean", q = 3)

Arguments

x

a matrix or data frame of data points. Each row is a data point, each column is a dimension.

k

number of nearest neighbors in the LOF calculation (default 5).

metric

distance metric to use. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given, case-insensitive

q

the power of the Minkowski distance.

Value

a vector of LOF values, in the same order as the data points in x. NA values will be returned for those data points which contained at least one NA coordinate.


rushkin/outlier documentation built on Dec. 18, 2020, 6:48 a.m.