wolffd@0: function means = gtmlmean(net, data) wolffd@0: %GTMLMEAN Mean responsibility for data in a GTM. wolffd@0: % wolffd@0: % Description wolffd@0: % MEANS = GTMLMEAN(NET, DATA) takes a GTM structure NET, and computes wolffd@0: % the means of the responsibility distributions for each data point in wolffd@0: % DATA. wolffd@0: % wolffd@0: % See also wolffd@0: % GTM, GTMPOST, GTMLMODE wolffd@0: % wolffd@0: wolffd@0: % Copyright (c) Ian T Nabney (1996-2001) wolffd@0: wolffd@0: % Check for consistency wolffd@0: errstring = consist(net, 'gtm', data); wolffd@0: if ~isempty(errstring) wolffd@0: error(errstring); wolffd@0: end wolffd@0: wolffd@0: R = gtmpost(net, data); wolffd@0: means = R*net.X;