wolffd@0: function [post, a] = gtmpost(net, data) wolffd@0: %GTMPOST Latent space responsibility for data in a GTM. wolffd@0: % wolffd@0: % Description wolffd@0: % POST = GTMPOST(NET, DATA) takes a GTM structure NET, and computes wolffd@0: % the responsibility at each latent space sample point NET.X for each wolffd@0: % data point in DATA. wolffd@0: % wolffd@0: % [POST, A] = GTMPOST(NET, DATA) also returns the activations A of the wolffd@0: % GMM NET.GMMNET as computed by GMMPOST. wolffd@0: % wolffd@0: % See also wolffd@0: % GTM, GTMEM, GTMLMEAN, GMLMODE, GMMPROB 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: net.gmmnet.centres = rbffwd(net.rbfnet, net.X); wolffd@0: wolffd@0: [post, a] = gmmpost(net.gmmnet, data);