Parallel Distance Matrix Computation using Multiple Threads

A fast parallelized alternative to R's native 'dist' function to calculate distance matrices for continuous, binary, and multi-dimensional input matrices with support for a broad variety of distance functions from the 'stats', 'proxy' and 'dtw' R packages. For ease of use, the 'parDist' function extends the signature of the 'dist' function and uses the same parameter naming conventions as distance methods of existing R packages. The package is mainly implemented in C++ and leverages the 'RcppParallel' package to parallelize the distance computations with the help of the 'TinyThread' library. Furthermore, the 'Armadillo' linear algebra library is used for optimized matrix operations during distance calculations. The curiously recurring template pattern (CRTP) technique is applied to avoid virtual functions, which improves the Dynamic Time Warping calculations while keeping the implementation flexible enough to support different step patterns and normalization methods.


News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("parallelDist")

0.1.1 by Alexander Eckert, 3 months ago


https://github.com/alexeckert/parallelDist, https://www.alexandereckert.com/R


Report a bug at https://github.com/alexeckert/parallelDist/issues


Browse source code at https://github.com/cran/parallelDist


Authors: Alexander Eckert [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp, RcppParallel

Suggests dtw, ggplot2, proxy, highlight, testthat

Linking to Rcpp, RcppParallel, RcppArmadillo

System requirements: C++11


See at CRAN