View source: R/unsupervised-dbscan.R
| suggest_eps | R Documentation |
Use k-NN distance plot to suggest eps value
suggest_eps(data, minPts = 5, method = "percentile", percentile = 0.95)
data |
A data frame or matrix |
minPts |
Minimum points parameter (used as k for k-NN) |
method |
Method to suggest eps: "knee" (default), "percentile" |
percentile |
If method="percentile", which percentile to use (default: 0.95) |
A list containing:
eps: suggested epsilon value
knn_distances: full tibble of k-NN distances
method: method used
eps_info <- suggest_eps(iris, minPts = 5)
eps_info$eps
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.