computeDistanceFromPointToSetOfPoints: Computes distance between a single point and set of points.

Description Usage Arguments Value

Description

Helper to compute distance between a single point and a point set.

Usage

1
2
computeDistanceFromPointToSetOfPoints(a, B,
  dist.fun = computeEuclideanDistance)

Arguments

a

[numeric(1)]
Point given as a numeric vector.

B

[matrix]
Point set (each column corresponds to a point).

dist.fun

[matrix]
Distance function to compute distance between points x and y. Expects a single numeric vector d with the coordinate-wise differences di = (xi - yi). Default is computeEuclideanDist.

Value

[numeric(1)]


jakobbossek/ecr documentation built on May 18, 2019, 9:09 a.m.