dcor._dcor_internals

Internal functions for distance covariance and correlation.

The functions in this module are used for performing computations related with distance covariance and correlation.

Functions

double_centered(a, *[, out])

Return a copy of the matrix \(a\) which is double centered.

mean_product(a, b)

Average of the elements for an element-wise product of two matrices.

u_centered(a, *[, out])

Return a copy of the matrix \(a\) which is \(U\)-centered.

u_complementary_projection(a)

Return the orthogonal projection function over \(a^{\perp}\).

u_product(a, b)

Inner product in the Hilbert space of \(U\)-centered distance matrices.

u_projection(a)

Return the orthogonal projection function over \(a\).

Classes

Centering()

Callback protocol for centering method.

MatrixCentered()

Callback protocol for centering method.