rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
GammaCalculatorInterface.m
1 classdef GammaCalculatorInterface < handle
2 % BASE Basis class for the preparation and calculation of gamma
3 % Any subclass should also overwrite the
4 
5  methods(Abstract)
6  % GEN_DETAILED_DATA
7  % This function is called by the basis generation algorithm and
8  % should be used to calculate all high dimensional quantities
9  % that are required for the fast online calculation of $\gamma$.
10  data = gen_detailed_data(rmodel, model_data, detailed_data);
11 
12  % GEN_REDUCED_DATA
13  % The return value of this function should be a function handle
14  % that has the following form
15  % rb_gamma = fn(rmodel, reduced_data, sim)
16  fn = gen_reduced_data(model, detailed_data, reduced_data);
17  end
18 
19  methods
20  function g = gamma(model, model_data, sim)
21  % GAMMA This function should be implemented when this method
22  % allows the calculation of the true gamma value
23  error('Implement the function gamma(model, model_data, sim)');
24  end
25 
26  function s = name(this)
27  % This function should return the name of the gamma calculation
28  % method. By default its just the class name!
29  error('Implement this function!')
30  end
31 
32  end
33 end