knn_mean: Multivariate local means

Description Usage Arguments Value See Also

View source: R/knnStats.R

Description

compute k-nearest neighbor (knn) centroids (i.e. mean vectors).

Usage

1
knn_mean(x, k, xref = NULL, nn_alg = "kd_tree")

Arguments

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.

Value

knn_mean returns a matrix of knn centroids.

See Also

knn_density


benja0x40/QuickShift documentation built on Jan. 22, 2021, 7:43 p.m.