Mercurial > hg > camir-aes2014
comparison toolboxes/FullBNT-1.0.7/netlab3.3/gtmlmean.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 means = gtmlmean(net, data) | |
2 %GTMLMEAN Mean responsibility for data in a GTM. | |
3 % | |
4 % Description | |
5 % MEANS = GTMLMEAN(NET, DATA) takes a GTM structure NET, and computes | |
6 % the means of the responsibility distributions for each data point in | |
7 % DATA. | |
8 % | |
9 % See also | |
10 % GTM, GTMPOST, GTMLMODE | |
11 % | |
12 | |
13 % Copyright (c) Ian T Nabney (1996-2001) | |
14 | |
15 % Check for consistency | |
16 errstring = consist(net, 'gtm', data); | |
17 if ~isempty(errstring) | |
18 error(errstring); | |
19 end | |
20 | |
21 R = gtmpost(net, data); | |
22 means = R*net.X; |