mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-29 02:00:24 +08:00
12 lines
246 B
Matlab
12 lines
246 B
Matlab
function ll=LLC(U,D,CC)
|
|
% compute the log likelihood from u,dand data or from R and data
|
|
if (nargin==3)
|
|
if (min(size(U))==1)
|
|
A=U;
|
|
U=rotAll(A);
|
|
end
|
|
Qt = U' * expm(D) * U;
|
|
ll=sum(sum(log(Qt).*CC));
|
|
else
|
|
disp('cant do this');
|
|
end |