/** * Calculates the [distance covariance]{@link https://en.wikipedia.org/wiki/Distance_correlation#Distance_covariance} for * paired arrays of values. * * @method dCov * @memberof ran.dependence * @param {number[]} x First array of values. * @param {number[]} y Second array of values. * @throws {Error} If the arrays have different lengths. * @returns {number} The distance covariance, or NaN for empty arrays. * @example * * ran.dependence.dCov([], []) * // => NaN * * ran.dependence.dCov([1, 2, 3], [2, 1, 2]) * // => 0.31426968052735443 */ export default function (x: number[], y: number[]): number;