Description Usage Arguments Value
This function returns an affinity matrix within knn-nearest neighbors from the distance matrix.
1 | getAffinityMatrix(distance2, knn, nc)
|
distance2 |
The distance matrix for each observation |
knn |
The number of nearest neighbors |
nc |
The number of observations for data in this class |
an affinity matrix - the larger the element in the matrix, the closer two data points are
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.