Learn R Programming

omicsTools (version 1.1.7)

calculate_lof: Calculate Local Outlier Factor (LOF)

Description

Calculate Local Outlier Factor (LOF)

Usage

calculate_lof(values, k = 5)

Value

A numeric vector of LOF values.

Arguments

values

A numeric vector of values for which to calculate LOF.

k

The number of neighbors to use for calculating LOF. Defaults to 5.

Examples

Run this code
values <- rnorm(100)
calculate_lof(values)

Run the code above in your browser using DataLab