1
0
Fork 0

Estimate Gaussian

master
neingeist 10 years ago
parent 33e8cbac01
commit 4bc9a2b246

@ -21,16 +21,9 @@ sigma2 = zeros(n, 1);
% should contain variance of the i-th feature. % should contain variance of the i-th feature.
% %
mu = 1/m * sum(X)';
sigma2 = 1/m * sum(bsxfun(@minus, X, mu').^2)';
% ============================================================= % =============================================================
end end