View source: R/HelperFunctions.R
knn_smooth_scores | R Documentation |
Smoothing scores by KNN
knn_smooth_scores(matrix = NULL, nn = NULL, decay = 0.1, up.only = FALSE)
matrix |
Input data matrix |
nn |
A nearest neighbor object returned by findKNN |
decay |
Exponential decay for nearest neighbor weight: (1-decay)^n |
up.only |
If set to TRUE, smoothed scores will only be allowed to increase by smoothing |
A dataframe of knn-smoothed scores
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.