Mercurial > hg > camir-ismir2012
comparison toolboxes/FullBNT-1.0.7/netlab3.3/gtmlmean.m @ 0:cc4b1211e677 tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
author | Daniel Wolff |
---|---|
date | Fri, 19 Aug 2016 13:07:06 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cc4b1211e677 |
---|---|
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; |