Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Parameters
----------
array_resid : array-like
data array must be of shape (2, T)
Returns
-------
val : float
Distance correlation coefficient.
"""
# Remove ties before applying transformation to uniform marginals
# array_resid = self._remove_ties(array_resid, verbosity=4)
x_vals, y_vals = self._trafo2uniform(array_resid)
_, val, _, _ = tigramite_cython_code.dcov_all(x_vals, y_vals)
return val