rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
plot_error_estimator.m
1 function p = plot_error_estimator(offline_data,params)
2 % function p = plot_error_estimator(offline_data,params)
3 %
4 % function plotting the error-estimator landscape over the
5 % parameter space.
6 %
7 % required fields of params:
8 %
9 % mu_ranges: cell array of the mu_ranges
10 % num_plot_intervals : vector indicating the number of
11 % intervals for the rb_simulation test. If not
12 % set, default [10],[10 10],[10 10 10] is taken
13 % depending on the dimensionality of the parameter space
14 
15 % Bernard Haasdonk 6.6.2007
16 
17 if ~isfield(params,'num_plot_intervals')
18  params.num_plot_intervals = 10 * ones(length(params.mu_names),1);
19 end;
20 
21 par.range = params.mu_ranges;
22 par.numintervals = params.num_plot_intervals;
23 plotgrid = cubegrid(par);
24 
25 M = get(plotgrid,'vertex')';
26 
27 params.error_indicator = 'estimator';
28 error_estimators = rb_test_indicator([],offline_data,M,[],params);
29 
30 plot_leafvertex_data(error_estimators,plotgrid,params);
31 
32 % TO BE ADJUSTED TO NEW SYNTAX
33 %| \docupdate
A hierarchical cubegrid of arbitrary dimension.
Definition: cubegrid.m:17