annotate matlab/flstUpdateTransition.m @ 1:4283604499f8 tip

added mini probability to delta (not sure if this is a good idea, but I did it)
author matthiasm
date Mon, 10 Nov 2014 19:38:49 +0000
parents 1df4a6fb0d22
children
rev   line source
matthiasm@0 1 function d = flstUpdateTransition(d, transMat, thresh)
matthiasm@0 2
matthiasm@0 3 if nargin < 3
matthiasm@0 4 thresh = eps;
matthiasm@0 5 end
matthiasm@0 6
matthiasm@0 7 [d.from, d.to] = find(transMat > thresh);
matthiasm@0 8 temp = find(transMat(:) > thresh);
matthiasm@0 9 d.prob = transMat(temp);
matthiasm@0 10 d.nTrans = length(d.prob);