Obtains the mean of each column of the matrix and subtracts it from the given matrix in a centering operation.
center_matrix(x)
A matrix
with any dimensions
A matrix
with the same dimensions of X that has been centered.
The application of this function to a matrix mimics the use of a centering matrix given by:
$${C_n} = {I_n} - \frac{1}{n}{11^T}$$