Learn R Programming

weird (version 1.0.2)

glosh_scores: GLOSH scores

Description

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.

Usage

glosh_scores(y, k = 10, ...)

Value

Numerical vector containing GLOSH values

Arguments

y

Numerical matrix or vector of data

k

Minimum cluster size. Default: 5.

...

Additional arguments passed to dbscan::hdbscan

Author

Rob J Hyndman

See Also

dbscan::glosh

Examples

Run this code
y <- c(rnorm(49), 5)
glosh_scores(y)

Run the code above in your browser using DataLab