/
concept-collection
/
walnuts-interactive
Jump to
/
Appearance
Match my system
Paper
GitHub
Slate
Midnight
Terminal
Sign in
concept-collection
/
walnuts-interactive
Code
Commits
Issues
0
Pull requests
0
Actions
Branches
1
Tags
0
Site
main
Branches
main
walnuts-interactive
/
helpers
/
pmf_p_micro.m
8 lines · 170 B
Code
Blame
History
cccc996
Use Nawaf Bou-Rabee's reference WALNUTS implementation
Jeremy Magland
1 month ago
1
function 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
8
end
↑
↓
move
↵
open
esc
close