computeKNNWeights,matrix-method | R Documentation |
compute for each vector the weights to apply to it's K nearest neighbors
## S4 method for signature 'matrix'
computeKNNWeights(object, K = round(sqrt(nrow(object))))
object |
matrix to use for KNN |
K |
Number of neighbors to consider. |
a list of two items: indices: matrix, cells X neighbors Each row specifies indices of nearest neighbors weights: matrix, cells X neighbors Corresponding weights to nearest neighbors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.