jjj
An m-file implementation of DP over matrix of state probability.
Contents
Syntax
- optimValue=dpOverMapM(stateProbMat, transProbMat)
- optimValue=dpOverMapM(stateProbMat, transProbMat, showPlot)
- [optimValue, dpPath, dpTable, time]=dpOverMapM(...)
Description
[optimValue, dpPath]=dpOverMap(stateProbMat, transProbMat) returns the optimum value and the corresponding DP (dynamic programming) for HMM evaluation.
- stateProbMat: matrix of log state probabilities
- transProbMat: matrix of log transition probabilities
Example
load pfMat.mat pfMat(1:20, :)=0; %pfMat=[5 2 6; 2 9 3]; penalty=10000; showPlot=1; [optimValue, dpPath, dpTable, time]=dpOverMapM(pfMat, penalty, showPlot); fprintf('Time=%.2f sec\n', time);
Attempt to reference field of non-structure array. Error in dpOverMapM (line 53) dpTable(1,:)=stateProbMat(1,:)+opt.initProb; Error in jjj_help (line 24) [optimValue, dpPath, dpTable, time]=dpOverMapM(pfMat, penalty, showPlot);