feats_to_knn_matrix.RdCalculate knn-matrix based on feature matrix
feats_to_knn_matrix(feats, k)
| k | k parameter for knn |
|---|---|
| feat | feature matrix (e.g. output of |
knn-matrix: number of samples X number of features with 1 for being knn in the dimesion and 0 otherwise.