CMD + K

r-pdist

Community

Computes the euclidean distance between rows of a matrix X and rows of another matrix Y. Previously, this could be done by binding the two matrices together and calling 'dist', but this creates unnecessary computation by computing the distances between a row of X and another row of X, and likewise for Y. pdist strictly computes distances across the two matrices, not within the same matrix, making computations significantly faster for certain use cases.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::r-pdist

Usage Tracking

1.2.1
1.2
2 / 8 versions selected
Downloads (Last 6 months): 0

About

Summary

Computes the euclidean distance between rows of a matrix X and rows of another matrix Y. Previously, this could be done by binding the two matrices together and calling 'dist', but this creates unnecessary computation by computing the distances between a row of X and another row of X, and likewise for Y. pdist strictly computes distances across the two matrices, not within the same matrix, making computations significantly faster for certain use cases.

Last Updated

May 4, 2022 at 06:55

License

GPL-2.0-or-later

Supported Platforms

linux-aarch64
linux-ppc64le
win-64
macOS-64
linux-64