ecdf.indices(A, sphered = FALSE)
The indices described in Perisic and Posse (2005) use this function to construct the following four indices.
Cramer-von-Mises: $$\sum_i (F_n(x_i, y_i) - \Phi(x_i)\Phi(y_i))^2$$ Kolmogorov-Smirnov: $$\max_i |F_n(x_i, y_i) - \Phi(x_i)\Phi(y_i)|$$ D2: $$\sum_i (F_n(x_i, y_i) - F_n(y_i, x_i))^2$$ D-infinity: $$\max_i |F_n(x_i, y_i) - F_n(y_i, x_i)|$$
where $\Phi(.)$ is the cumulative distribution function of the standard normal distribution.
When using any of these indices, the original authors recommended rotating the data projection several times to obtain rotational invariance. In simulations, the indices performed well even without rotations.