Description Usage Arguments Value Examples
View source: R/core_functions.R
This function will try to estimate K given a similarity matrix. Generally the maximum eigengap is preferred, but on some data examining the distribution of the eigenvectors as in the multimodality gap heuristic may be beneficial.
1 | estimate_k(A2, maxk = 10, showplots = TRUE)
|
A2 |
Data frame or matrix: a similarity matrix |
maxk |
Numerical value: maximum number of K to be considered |
showplots |
Character value: whether to show the plot on the screen |
A data frame containing the eigenvalues and dip-test statistics of the eigenvectors of the graph Laplacian
1 | k_test <- estimate_k(missl[[1]])
|
egap optimal K: 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.