API List¶
List of functions¶
A complete list of all functions provided by dcor.
Biased estimators for distance covariance and distance correlation¶
These functions compute the usual (biased) estimators for the distance covariance and distance correlation and their squares.

Usual (biased) estimator for the distance covariance. 

Usual (biased) estimator for the squared distance covariance. 

Usual (biased) estimator for the distance correlation. 

Usual (biased) estimator for the squared distance correlation. 

Usual (biased) statistics related with the distance covariance. 

Usual (biased) statistics related with the squared distance covariance. 
Unbiased and biascorrected estimators for distance covariance and distance correlation¶
These functions compute the unbiased estimators for the square of the distance covariance and the bias corrected estimator for the square of the distance correlation. As these estimators are signed, no functions are provided for taking the square root.

Unbiased estimator for the squared distance covariance. 

Biascorrected estimator for the squared distance correlation. 

Unbiased statistics related with the squared distance covariance. 
Affinely invariant distance correlation¶
These functions compute the estimators for the affinely invariant distance correlation, a variant of distance correlation that is invariant by invertible affine transformations of the input parameters.

Square of the affinely invariant distance correlation. 

Affinely invariant distance correlation. 
Partial distance covariance and partial distance correlation¶
These functions compute the estimators for the partial distance covariance and partial distance correlation.

Partial distance covariance estimator. 

Partial distance correlation estimator. 
Energy distance¶
The following function is an estimator for the energy distance between two random vectors.

Estimator for energy distance. 
Homogeneity test¶
The following functions are used to test if random vectors have the same distribution.
Homogeneity statistic. 


Test of homogeneity based on the energy distance. 
Independence test¶
The following functions are used to test if two random vectors are independent.
Test of distance covariance independence. 

Statistic used in 

Test of independence for high dimension. 
Internal computations¶
These functions are used for computing the estimators of the squared distance covariance, and are also provided by this package.

Return a copy of the matrix \(a\) which is double centered. 

Return a copy of the matrix \(a\) which is \(U\)centered. 

Average of the elements for an elementwise product of two matrices. 

Inner product in the Hilbert space of \(U\)centered distance matrices. 
Return the orthogonal projection function over \(a\). 

Return the orthogonal projection function over \(a^{\perp}\). 
Compute distance matrices¶
These functions are used for computing distance matrices.

Pairwise distance between points. 
Compute the same measure between different random variables¶
This function is used to compute a measure such as distance covariance/correlation between different random variables. It will use an optimized implementation (possibly parallelized in multicore machines) when it is available.

Computes a dependency measure between pairs of elements. 
List of classes¶
A complete list of all classes provided by dcor.
Methods for computing distance covariance¶
The following enum lists the methods that can be used for computing distance covariance.
Method used for computing the distance covariance. 