getAffinityMatrix: Get Affinity Matrix
Description
This function returns an affinity matrix within knn-nearest neighbors from the distance matrix.Usage
getAffinityMatrix(distance2, knn, nc)
Value
an affinity matrix - the larger the element in the matrix, the closer two data points are