glosh_scores {weird} | R Documentation |
Compute Global-Local Outlier Score from Hierarchies. This is based
on hierarchical clustering where the minimum cluster size is k. The resulting
outlier score is a measure of how anomalous each observation is.
The function uses dbscan::hdbscan
to do the calculation.
glosh_scores(y, k = 10, ...)
y |
Numerical matrix or vector of data |
k |
Minimum cluster size. Default: 5. |
... |
Additional arguments passed to |
Numerical vector containing GLOSH values
Rob J Hyndman
dbscan::glosh
y <- c(rnorm(49), 5)
glosh_scores(y)