view matlab/flstUpdateTransition.m @ 0:1df4a6fb0d22

added flst files moved over from "smoothie"
author matthiasm
date Fri, 31 Oct 2014 10:52:27 +0800
parents
children
line wrap: on
line source
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);