MakeFigureSimulation
PURPOSE 
Generates the plots in Figures 2, 8, 10, and 11.
SYNOPSIS 
function MakeFigureSimulation(title,data)
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
- set Set method for Gaussian mixtures.
- set Set function for PODMP (base type)
This function is called by:
SOURCE CODE 
0001 function MakeFigureSimulation(title,data)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 h=clf;
0024 set(h,'name',title,'numbertitle','off');
0025
0026 if ischar(data)
0027 Results=load([data '-results.mat']);
0028 else
0029 Results=data;
0030 end
0031
0032 subplot(2,2,1);
0033 errorbar(Results.tics,Results.SM.AV,Results.SD.AV);
0034 xlabel('time (s)');
0035 ylabel('Value')
0036
0037 subplot(2,2,2);
0038 errorbar(Results.tics,Results.SM.R,Results.SD.R);
0039 xlabel('time (s)');
0040 ylabel('Acc. Disc. Reward')
0041
0042 subplot(2,2,3);
0043 errorbar(Results.tics,Results.SM.nAlpha,Results.SD.nAlpha);
0044 xlabel('time (s)');
0045 ylabel('No. \alpha-Elements');
0046
0047
0048 subplot(2,2,4);
0049 errorbar(Results.tics,Results.SM.nChanges,Results.SD.nChanges);
0050 xlabel('time (s)');
0051 ylabel('No. Policy Changes');
0052
|