wolffd@0: function val = get_params(CPD, name) wolffd@0: % GET_PARAMS Get the parameters (fields) for a tabular_CPD object wolffd@0: % val = get_params(CPD, name) wolffd@0: % wolffd@0: % The following fields can be accessed wolffd@0: % wolffd@0: % cpt - the CPT wolffd@0: % wolffd@0: % e.g., CPT = get_params(CPD, 'cpt') wolffd@0: wolffd@0: switch name wolffd@0: case 'cpt', val = CPD.CPT; wolffd@0: case 'tree', val = CPD.tree; wolffd@0: otherwise, wolffd@0: error(['invalid argument name ' name]); wolffd@0: end