lof_scores {weird} | R Documentation |
Local outlier factors
Description
Compute local outlier factors using k nearest neighbours. A local
outlier factor is a measure of how anomalous each observation is based on
the density of neighbouring points.
The function uses dbscan::lof
to do the calculation.
Usage
lof_scores(y, k = 10, ...)
Arguments
y |
Numerical matrix or vector of data |
k |
Number of neighbours to include. Default: 5. |
... |
Additional arguments passed to |
Value
Numerical vector containing LOF values
Author(s)
Rob J Hyndman
See Also
dbscan::lof
Examples
y <- c(rnorm(49), 5)
lof_scores(y)
[Package weird version 1.0.2 Index]