computeDistanceFromPointToSetOfPoints function

Computes distance between a single point and set of points.

Computes distance between a single point and set of points.

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

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.

Returns

[numeric(1)]

  • Maintainer: Jakob Bossek
  • License: GPL-3
  • Last published: 2023-03-08