get_field.m
来自「基于matlab的bayes net toolbox,希望对大家能有些帮助」· M 代码 · 共 17 行
M
17 行
function val = get_params(CPD, name)% GET_PARAMS Get the parameters (fields) for a tabular_CPD object% val = get_params(CPD, name)%% The following fields can be accessed%% cpt - the CPT%% e.g., CPT = get_params(CPD, 'cpt')switch name case 'cpt', val = CPD.CPT; case 'tree', val = CPD.tree; otherwise, error(['invalid argument name ' name]);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?