powered by
Centers the observations in a matrix by their respective class sample means
center_data(x, y)
matrix containing the training data. The rows are the sample observations, and the columns are the features.
vector of class labels for each training observation
matrix with observations centered by its corresponding class sample mean