annotate mt_resample.m @ 0:be936975f254

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