1 function test_err = rb_test_estimator(model, ...
3 %
function test_err = rb_test_estimator(reduced_data,M_test)
5 %
function determining the test-error-estimators
for the given set of
6 % vectors mu (columns in M_test) of the RB simulation with corresponding
9 % Bernard Haasdonk 6.6.2007
11 %
import model specific methods
12 %rb_simulation = model.rb_simulation;
14 nmus = size(M_test,2);
16 test_err = zeros(nmus,1);
19 model = set_mu(model,M_test(:,i));
20 sim_data = rb_simulation(model,reduced_data);
21 test_err(i) = model.get_estimator_from_sim_data(sim_data);