comparison toolboxes/FullBNT-1.0.7/netlab3.3/gtmpost.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function [post, a] = gtmpost(net, data)
2 %GTMPOST Latent space responsibility for data in a GTM.
3 %
4 % Description
5 % POST = GTMPOST(NET, DATA) takes a GTM structure NET, and computes
6 % the responsibility at each latent space sample point NET.X for each
7 % data point in DATA.
8 %
9 % [POST, A] = GTMPOST(NET, DATA) also returns the activations A of the
10 % GMM NET.GMMNET as computed by GMMPOST.
11 %
12 % See also
13 % GTM, GTMEM, GTMLMEAN, GMLMODE, GMMPROB
14 %
15
16 % Copyright (c) Ian T Nabney (1996-2001)
17
18 % Check for consistency
19 errstring = consist(net, 'gtm', data);
20 if ~isempty(errstring)
21 error(errstring);
22 end
23
24 net.gmmnet.centres = rbffwd(net.rbfnet, net.X);
25
26 [post, a] = gmmpost(net.gmmnet, data);