revschedule.m
来自「Gaussian belief propagation code in matl」· M 代码 · 共 17 行
M
17 行
% REVSCHEDULE(S) returns the reverse of message passing schedule S. See the% function MPP for more information on message passing schedules.function R = revschedule (S) % Get the number of edges. m = length(S); R = repmat(struct('i',0,'j',0),m,1); for u = 1:m i = S(u).i; j = S(u).j; v = m-u+1; R(v).i = j; R(v).j = i; end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?