#include "ekd_pca.h" void centre_scale(float** input_matrix, uint32_t rows, uint32_t cols, centre_scale_operation_e operation) { float* means = (float*) malloc(cols * sizeof(float)); float* std_devs = (float*) malloc(cols * sizeof(float)); // Iterating column by column for (uint32_t j = 0; j subtract means, Scaling -> Divide by std_devs for (uint32_t j=0; j TOLERANCE) { for (uint32_t i=0; i