set_observation.m.svn-base

来自「Probabilistic graphical models in matlab」· SVN-BASE 代码 · 共 22 行

SVN-BASE
22
字号
function [model] = set_observation(model, a, b)if (a > model.number_vertices)error('The specified variable does not exist in the graph.');endif (model.all_variables)     if (b > model.all_variables_size)error('The specified variable cannot have that observation.');     endelseif (b > model.variables_sizes(a))error('The specified variable cannot have that observation.');endendmodel.observations{a} = b;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?