comparison toolboxes/FullBNT-1.0.7/bnt/CPDs/@tabular_kernel/set_fields.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function K = set_params_kernel(K, name, val)
2 % SET_PARAMS_KERNEL Accessor function for a field (table_kernel)
3 % K = set_params_kernel(K, name, val)
4 %
5 % e.g., K = set_params_kernel(K, 'table', rand(2,3,2)) for a kernel on 3 nodes with 2,3,2 values each
6
7 % We should check if the arguments are valid...
8
9 switch name
10 case 'table', K.table = val;
11 otherwise,
12 error(['invalid field name ' name]);
13 end