Fast Computation of Distance Correlations

Fast computation of the distance covariance 'dcov' and distance correlation 'dcor'. The computation cost is only O(n log(n)) for the distance correlation (see Chaudhuri, Hu (2019) ). The functions are written entirely in C++ to speed up the computation.


The dccpp R Package

R-CMD-check GitHub Workflow Status (branch) Lifecycle: stable

Fast computation of the distance covariance dcov and distance correlation dcor. The computation cost is only O(n log(n)) for the distance correlation (see Chaudhuri, Hu, 2019, arXiv, elsevier). The functions are written entirely in C++ to speed up the computation.

Installation

Install from CRAN

install.packages("dccpp")

Install from GitHub

# install.packages("remotes")
remotes::install_github("BerriJ/dccpp")

Usage

dcov(x, y) # To calculate the distance covariance
dcor(x, y) # To calculate the distance correlation

Contributions and Issues

Feel free to raise an issue if you find something not working properly.

You are also very welcome to contribute to dcccp. Please base your pull requests on the development branch. Note that this package focuses on performance, PR's that improve the performance are particularly welcome.

License

GNU General Public License (≥ 3)

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("dccpp")

0.1.0 by Jonathan Berrisch, 3 years ago


https://dccpp.berrisch.biz/, https://github.com/BerriJ/dccpp


Report a bug at https://github.com/BerriJ/dccpp/issues


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


Authors: Jonathan Berrisch [aut, cre]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports Rcpp

Suggests testthat

Linking to Rcpp, RcppArmadillo


Imported by dcorBSS.


See at CRAN