pdist: Distance betwen vector and matrix

Description Usage Arguments Value

Description

This function computes and returns the minimum distance between a vector and a matrix

Usage

1
pdist(point, set, method = "manhattan")

Arguments

point

numeric vector

set

numeric matrix

method

String stating which distance measure to be used. This must be one of: "euclidean" or "manhattan" (default).

Value

numeric value indicating the minimum distance between point and set.



Search within the moko package
Search all R packages, documentation and source code

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

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

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