Description Usage Arguments Value See Also
k-nearest neighbor (knn) centroid and associated local standard deviation.
1 | knn_musigma2(x, k, xref = NULL, smoothing = FALSE, nn_alg = "kd_tree")
|
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). |
smoothing |
logical value activating an additional local average smoothing of the estimated variances (default = FALSE, inactive). |
nn_alg |
nearest neighbor searching algorithm (default = "kd_tree"). See get.knn for further explanations. |
knn_musigma2
returns a list with the following elements:
mu |
knn centroids |
sigma2 |
knn variances (squared standard deviations) |
knn_density, knn_mean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.