Learn R Programming

DiceView (version 2.2-0)

min_dist: Minimal distance between one point to many points

Description

Minimal distance between one point to many points

Usage

min_dist(x, X, norm = rep(1, ncol(X)))

Value

minimal distance

Arguments

x

one point

X

matrix of points (same number of columns than x)

norm

normalization vecor of distance (same number of columns than x)

Examples

Run this code
min_dist(runif(3),matrix(runif(30),ncol=3))

Run the code above in your browser using DataLab