Daniel@0: function [ll, p] = prob_path(prior, transmat, obsmat, qs) Daniel@0: % PROB_PATH Compute the prob. of a specific path (state sequence) through an HMM. Daniel@0: % [ll, p] = prob_path(prior, transmat, obsmat, states) Daniel@0: % Daniel@0: % ll = log prob path Daniel@0: % p(t) = Pr(O(t)) * Pr(Q(t) -> Q(t+1)) for 1<=t