hi, i m finding following error:1.Error: File: emgm.m Line: 77 Column: 33
"mu" previously appeared to be used as a function or command,
conflicting with its use here as the name of a variable.
A possible cause of this error is that you forgot to initialize the
variable, or you have initialized it implicitly using load or eval.
2.Input argument "X" is undefined.
Error in ==> emgm_1 at 8
R = initialization(X,init);
plz plz resolve it
Can you please provide an example of initializing using a structure that has mu and sigma. The code looks for this:
if isstruct(init) % initialize with a model
R = expectation(X,init);
I wish to know how to initialize values in this init structure. Thanks so much for this implementation. It really is a blessing
thanks.but I dont understand some code.
can you answer this What is bellow codes' mathematical mean ?
y = loggausspdf(X, mu, Sigma)
Q = U'\X;
q = dot(Q,Q,1);
c = d*log(2*pi)+2*sum(log(diag(U)));