mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
7 lines
176 B
Matlab
7 lines
176 B
Matlab
function [ d, d_mean, d_std ] = normalize( d )
|
|
d_mean = mean(d);
|
|
d = d - repmat(d_mean, size(d,1), 1);
|
|
d_std = std(d);
|
|
d = d./ repmat(d_std, size(d,1), 1);
|
|
end
|