Description Usage Arguments Details Value Author(s) See Also Examples

Fast caclulation of the k-nearest neighbor distances in a matrix of points.
The plot can be used to help find a suitable value for the
`eps`

neighborhood for DBSCAN. Look for the knee in the plot.

1 2 | ```
kNNdist(x, k, ...)
kNNdistplot(x, k = 4, ...)
``` |

`x` |
the data set as a matrix or a dist object. |

`k` |
number of nearest neighbors used (use minPoints). |

`...` |
further arguments are passed on to |

See `kNN`

for a discusion of the kd-tree related parameters.

`kNNdist`

returns a numeric vector with the distance to its k nearest
neighbor.

Michael Hahsler

`kNN`

.

1 2 3 4 5 6 7 8 9 10 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.