function d = flstUpdateTransition(d, transMat, thresh)

if nargin < 3
    thresh = eps;
end

[d.from, d.to] = find(transMat > thresh);
temp = find(transMat(:) > thresh);
d.prob = transMat(temp);
d.nTrans = length(d.prob);