Forgot to commit ChangeLog in last commit
[libdai.git] / matlab / dai.m
1 % [logZ,q,md,qv,qf,qmap] = dai(psi,method,opts)
2 %
3 % INPUT: psi = linear cell array containing the factors
4 % (psi{i} should be a structure with a Member field
5 % and a P field).
6 % method = name of the method.
7 % opts = string of options.
8 %
9 % OUTPUT: logZ = approximation of the logarithm of the partition sum.
10 % q = linear cell array containing all final beliefs.
11 % md = maxdiff (final linf-dist between new and old single node beliefs).
12 % qv = linear cell array containing all variable beliefs.
13 % qf = linear cell array containing all factor beliefs.
14 % qmap = linear array containing the MAP state (only for BP,JTree).