powered by
Calculate Local Outlier Factor (LOF)
calculate_lof(values, k = 5)
A numeric vector of LOF values.
A numeric vector of values for which to calculate LOF.
The number of neighbors to use for calculating LOF. Defaults to 5.
values <- rnorm(100) calculate_lof(values)
Run the code above in your browser using DataLab