Description Usage Arguments Value Examples
View source: R/kernel_functions.R
This is a heuristic to find the sigma for the kernel from the Ng spectral clustering algorithm. It returns a global sigma. It uses the mean K nearest neighbour distances of all samples to determine sigma.
1 | sigma_finder(mat, NN = 3)
|
mat |
Data frame or matrix: with points as columns, features as rows |
NN |
Numerical value: the number of nearest neighbours to use (default=3) |
A global sigma
1 | sig <- sigma_finder(blobs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.