wolffd@0: function w = rbfpak(net) wolffd@0: %RBFPAK Combines all the parameters in an RBF network into one weights vector. wolffd@0: % wolffd@0: % Description wolffd@0: % W = RBFPAK(NET) takes a network data structure NET and combines the wolffd@0: % component parameter matrices into a single row vector W. wolffd@0: % wolffd@0: % See also wolffd@0: % RBFUNPAK, RBF wolffd@0: % wolffd@0: wolffd@0: % Copyright (c) Ian T Nabney (1996-2001) wolffd@0: wolffd@0: errstring = consist(net, 'rbf'); wolffd@0: if ~errstring wolffd@0: error(errstring); wolffd@0: end wolffd@0: wolffd@0: w = [net.c(:)', net.wi, net.w2(:)', net.b2];