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