knn_musigma2: Multivariate local means and variances

Description Usage Arguments Value See Also

View source: R/knnStats.R

Description

k-nearest neighbor (knn) centroid and associated local standard deviation.

Usage

1
knn_musigma2(x, k, xref = NULL, smoothing = FALSE, 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).

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.

Value

knn_musigma2 returns a list with the following elements:

mu

knn centroids

sigma2

knn variances (squared standard deviations)

See Also

knn_density, knn_mean


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