Daniel@0: function prob = gtmprob(net, data) Daniel@0: %GTMPROB Probability for data under a GTM. Daniel@0: % Daniel@0: % Description Daniel@0: % PROB = GTMPROB(NET, DATA) takes a GTM structure NET, and computes Daniel@0: % the probability of each point in the dataset DATA. Daniel@0: % Daniel@0: % See also Daniel@0: % GTM, GTMEM, GTMLMEAN, GTMLMODE, GTMPOST 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: net.gmmnet.centres = rbffwd(net.rbfnet, net.X); Daniel@0: Daniel@0: prob = gmmprob(net.gmmnet, data);