Mercurial > hg > ltpda
view m-toolbox/test/test_ao_mcmc.m @ 16:91f21a0aab35 database-connection-manager
Update utils.jquery
* * *
Update utils.jmysql.getsinfo
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
%% Simple test: x = 1*ones(1000,1); y = 3*x; x = ao(x); y = ao(y); x0 = 3.3; model = smodel(plist('expression','A*x','xvar','x','params','A','xvals',[x.y])); noise = ao(plist('waveform', 'noise', 'fs', 10, 'nsecs', 100,'sigma',0.1)); pl = plist('N',1000,... 'J',1,... 'cov',0.1,... % [4e-5 1e-5 1e-6 1e-8 1e-9] 'range',{[0.5 5.5]},... 'param',{'A'},... 'model',model,... 'noise',noise,... 'search',false,... 'x0',[x0],... 'simplex',false,... 'plot',1); b = mcmc(x,y,pl); plot(b.chain)