diff matlab/flstViterbiUpdate.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
line wrap: on
line diff
--- a/matlab/flstViterbiUpdate.m	Fri Oct 31 10:52:27 2014 +0800
+++ b/matlab/flstViterbiUpdate.m	Mon Nov 10 19:38:49 2014 +0000
@@ -36,7 +36,8 @@
             tempPsi(toState) = fromState;
         end
     end
-    d.delta = d.delta .* obsLik;
+%     d.delta = d.delta .* obsLik;
+    d.delta = d.delta .* obsLik + eps;
     deltaSum = sum(d.delta);
 
     if deltaSum > 0