Mercurial > hg > flst
view matlab/flstMakeData.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 source
function d = flstMakeData(mdl, memory) % makeFLSTData just returns a struct that contains all the necessary data % for a Fixed Lag Sparse Transition Viterbi decoder. init = mdl.init; transFrom = mdl.transFrom; transTo = mdl.transTo; transProb = mdl.transProb; d = struct(); d.init = init(:); d.from = transFrom; d.to = transTo; d.prob = transProb; d.memory = memory; d.nState = length(init); d.nTrans = length(transFrom); d.delta = ones(d.nState, 1) / d.nState; d.oldDelta = ones(d.nState, 1) / d.nState; d.psi = zeros(d.nState, memory); d.scale = ones(1, memory); d.updateCount = 0; d.path = [];