No Code Analyzer messages.
Coverage resultsShow coverage for parent directory
Total lines in function | 18 |
Non-code lines (comments, blank lines) | 5 |
Code lines (lines that can run) | 13 |
Code lines that did run | 12 |
Code lines that did not run | 1 |
Coverage (did run/can run) | 92.31 % |
Function listingtime | Calls | line |
---|
| | 1 | function [m] = ffy_rouwenhorst_mkv_recursive(p,q,h)
|
| | 2 | %%
|
| | 3 | % Rouwenhorst(1995)
|
| | 4 |
|
< 0.001 | 1 | 5 | if h == 1
|
| | 6 | m = 1;
|
< 0.001 | 1 | 7 | else
|
< 0.001 | 1 | 8 | m = 1;
|
< 0.001 | 1 | 9 | for i = 1:h-1
|
0.005 | 6 | 10 | zv = zeros(1,i)';
|
0.004 | 6 | 11 | m = p*[[m zv];[zv' 0]] + (1-p)*[[zv m];[0 zv']] + (1-q)*[[zv' 0];[m zv]] + q*[[0 zv'];[zv m]];
|
< 0.001 | 6 | 12 | m = m/2;
|
< 0.001 | 6 | 13 | m(1,:) = 2*m(1,:);
|
< 0.001 | 6 | 14 | m(length(m),:) = 2*m(length(m),:);
|
< 0.001 | 6 | 15 | end
|
< 0.001 | 1 | 16 | end
|
| | 17 |
|
< 0.001 | 1 | 18 | end
|
Other subfunctions in this file are not included in this listing.