We can implement energy distance in terms of distance covariance, as shown in https://arxiv.org/pdf/1910.08883.pdf.
We need to study:
- How this affect the current parameters of energy distance.
- How to allow users to optionally access the different implementations of distance covariance, as well as the old energy distance implementation (if needed).