input M x N matrix
column means
mean estimation method
M x N matrix with each column translated by the column mean
import mir.ndslice; import mir.math; auto data = mininitRcslice!double(2,1); data[] = [[1], [3]]; auto mean = mininitRcslice!double(1); auto res = centerColumns(data, mean, MeanEstimator.average); assert(mean[0] == 2); assert(res == [[-1],[1]]);
Mean Centring of raw data.