4 %
this function realises the evaluation of the functional
5 % l(P^M;\mu) = -1/|\Omega_0|*int_{\Omega_0}\frac{\partial P^M}{\partial t}(x) dx
6 % with \Omega_0 being a subset of \Omega.
8 % sim_data being the result of a lin_evol_detailed_simulation and v being
9 % the riest-representant of the theta-functional aquired via
10 % [v, ~] = model.operators_output(model, model_data);
11 % with model.name_output_functional =
'theta'
13 % Dominik Garmatter 26.03 2012
15 dP_dt = zeros(size(U,1),size(U,2)-1);
16 % it is \frac{\partial P}{\partial t}\approx\frac{P^k-P^(k-1)}{\delta t},
17 % so the following matrix is formed
18 for i = 1 : size(dP_dt,2)
19 dP_dt(:,i) = U(:,i+1) - U(:,i);
22 y = (v(:)') * dP_dt; % evaluates the functional