comparison mt_init.m @ 0:be936975f254

Initial check in.
author samer
date Wed, 01 Feb 2012 14:06:37 +0000
parents
children cc549aca4ea6
comparison
equal deleted inserted replaced
-1:000000000000 0:be936975f254
1 % mt_init - Initialise Melody Triangle system.
2 %
3 % mt_init ::
4 % A0:nonneg ~'parameter for sampling',
5 % B0:nonneg ~'parameter for sampling',
6 % A1:nonneg ~'parameter for sampling',
7 % B0:nonneg ~'parameter for sampling',
8 % L:natural ~'number of transmats to sample'
9 % -> mt_system.
10 %
11 % Initial system contains no transition matrices - you
12 % must call mt_ensure with a particular value of K
13 % to sample a set of L transition matrices of that size.
14 %
15 % Initial calibration is equivalent to:
16 % sys=mt_calibrate(sys, 1:3, [0,1,0;0,0,1]);
17 %
18 % The figure for scatter plots is fixed to figure 50 for now.
19
20 function Sys=mt_init(A0,B0,A1,B1,L)
21 Sys.sample_transmats = @(k)sample_transmat_hdp(A0,B0,A1,B1,k,L);
22 Sys.transmats = {};
23 Sys.info = {};
24 Sys.refpoints = [0,0;1,0;0,1]';
25 Sys.fig = 50;
26 Sys = mt_calibrate(Sys);
27 end