Estimate Gaussian
This commit is contained in:
parent
33e8cbac01
commit
4bc9a2b246
1 changed files with 5 additions and 12 deletions
|
@ -21,16 +21,9 @@ sigma2 = zeros(n, 1);
|
|||
% should contain variance of the i-th feature.
|
||||
%
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
mu = 1/m * sum(X)';
|
||||
sigma2 = 1/m * sum(bsxfun(@minus, X, mu').^2)';
|
||||
|
||||
% =============================================================
|
||||
|
||||
|
||||
end
|
||||
|
|
Reference in a new issue