distcov.fast: Calculate an unbiased estimate of the squared distance...

Description Usage Arguments Details Value

View source: R/distcov_fast.R

Description

Calculate an unbiased estimate of the squared distance covariance

Usage

1

Arguments

X

numeric vector containing samples

Y

numeric vector containing samples

Details

The calculation of this estimate is based on the algorithm in Huo 2014, i.e., it gives an unbiased estimate of the square of the distance covariance. The calculation uses U-statistics and requires only O(n log n) calculations.

Value

double giving the square of the distance covariance


jofie/DistCov documentation built on May 23, 2019, 9:02 p.m.