pdist: Partitioned Distance Function

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.

Package details

AuthorJeffrey Wong
MaintainerJeffrey Wong <jeff.ct.wong@gmail.com>
LicenseGPL
Version1.2.1
URL https://github.com/jeffwong/pdist
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("pdist")

Try the pdist package in your browser

Any scripts or data that you put into this service are public.

pdist documentation built on May 2, 2022, 5:08 p.m.