Mercurial > hg > trimatlab
comparison mt_resample.m @ 0:be936975f254
Initial check in.
author | samer |
---|---|
date | Wed, 01 Feb 2012 14:06:37 +0000 |
parents | |
children | 0e0f2805ef9c |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:be936975f254 |
---|---|
1 % mt_resample - Sample or resample melody triangle transition matrices of given size | |
2 % | |
3 % mt_resample :: | |
4 % mt_system ~'initial system' | |
5 % natural ~'size of transition matrices to resample' | |
6 % -> action mt_system. | |
7 % | |
8 % A new set of transition matrices will be sampled and a 3D information space | |
9 % scatter plot generated in the figure determined by the initial call to | |
10 % mt_init. | |
11 | |
12 function Sys=mt_resample(Sys,K) | |
13 [TT, II] = Sys.sample_transmats(K); | |
14 figure(Sys.fig); % 'name','info space'); | |
15 Sys.transmats{K} = TT; | |
16 Sys.info{K} = II; | |
17 Sys.hScat{K} = scatc(II,II(:,3),16); | |
18 axis on; box on; grid off; | |
19 lc=[0.4,0.4,0.4]; | |
20 set(gca,'Color','none'); | |
21 set(gca,'XColor',lc); | |
22 set(gca,'YColor',lc); | |
23 set(gca,'ZColor',lc); | |
24 xlabel('entropy rate'); | |
25 ylabel('redundancy'); | |
26 zlabel('pred-info rate'); | |
27 rotate3d on; | |
28 end |