View source: R/outlier_detection.R
| print.summary.knn.outliers | R Documentation |
Prints the summary of outlier detection results.
## S3 method for class 'summary.knn.outliers'
print(x, ...)
x |
An object of class "summary.knn.outliers". |
... |
Additional arguments passed to |
Invisibly returns the input object.
knn.res <- list(
S.q = matrix(c(0, 0,
1, 1,
2, 2), ncol = 2, byrow = TRUE),
y.q = c(1.0, 1.5, 2.0),
nn.d = matrix(c(0.2, 0.4,
0.3, 0.5,
1.4, 1.8,
0.25, 0.45),
ncol = 2, byrow = TRUE),
d.thld = 1,
idx = c(TRUE, TRUE, FALSE, TRUE),
n.outliers = 1L,
method = "qf"
)
class(knn.res) <- "knn.outliers"
summary(knn.res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.