/ concept-collection / walnuts-interactive
Sign in
concept-collection / walnuts-interactive
walnuts-interactive / helpers / pmf_p_micro.m
8 lines · 170 BCodeBlameHistory
cccc996Use Nawaf Bou-Rabee's reference WALNUTS implementationJeremy Magland 1function prob = pmf_p_micro(j, i)
2 weights = [2/3, 1/3, 0];
3 if ismember(j, [i, i+1, i+2])
4 prob = weights(j - i + 1);
5 else
6 prob = 0;
7 end
8end
moveopenescclose