Helper to compute distance between a single point and a point set.
computeDistanceFromPointToSetOfPoints(
a,
B,
dist.fun = computeEuclideanDistance
)[numeric(1)]
[numeric(1)]
Point given as a numeric vector.
[matrix]
Point set (each column corresponds to a point).
[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.