bw.nn: nearest-neighbor adaptive bandwidth selection

Description Usage Arguments Value Author(s) Examples

View source: R/bw.R

Description

For each row in pairwise distance matrix find the distance to the closest prop fraction of trees.

Usage

1
bw.nn(x, prop = 0.2, tol = 1e-06)

Arguments

x

pairwise distance matrix

prop

fraction of data to define the local neighborhood

tol

tolerance for zero-bandwidth check

Value

a vector of bandwidths for each tree (row) in x

Author(s)

Grady Weyenberg

Examples

1
2

grady/kdetrees documentation built on Jan. 28, 2018, 10:33 a.m.