anomaly_thresh | R Documentation |
A helper function that wraps around quantile
to apply a threshold to anomaly scores.
anomaly_thresh(x, threshold = 0.99, ...)
x |
Numeric vector of anomaly scores (e.g. created by |
threshold |
Numeric value to determine the threshold to flag outliers among the score. |
... |
Additional parameters passed to |
Logical vector referencing which, if any, of the provided values are outliers.
test_data <- c(1,2,3,4,5,100,5,4,3,2,1)
anomaly_thresh(test_data, 0.99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.