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)));
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