Description Usage Arguments Value See Also
compute k-nearest neighbor (knn) centroids (i.e. mean vectors).
1 |
x |
numeric matrix representing multivariate data where rows = observations and columns = measurement conditions (query data). |
k |
number of nearest neighbors which has equivalent effects as the usual bandwidth or smoothing parameters (larger k => smoother results). |
xref |
numeric matrix representing multivariate data where rows = observations and columns = measurement conditions (optional reference data). |
nn_alg |
nearest neighbor searching algorithm (default = "kd_tree"). See get.knn for further explanations. |
knn_mean
returns a matrix of knn centroids.
knn_density
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.