9 properties (SetAccess =
private, Dependent)
15 function sfn = SeparableFunctionNode(rmodel, detailed_data, sfhandle)
17 error('
Greedy.
DataTree.Reduced.SeparableFunctionNode needs three constructor arguments');
19 && isa(detailed_data, '
Greedy.
DataTree.Reduced.SeparableFunctionNode')
21 copy_extract(sfn, copy, rmodel);
23 sfn.sfhandle = sfhandle;
24 fill_fields(sfn, rmodel, detailed_data);
26 error('Wrong constructor arguments');
30 function yesno = needs_subset_copy(this, rmodel)
31 % function yesno = needs_subset_copy(this, rmodel)
32 % @copybrief ::
GreedyUser.IReducedDataNode.needs_subset_copy()
34 % @copydetails ::
GreedyUser.IReducedDataNode.needs_subset_copy()
38 rn = get_by_description(rmodel.N, this.
id);
43 function N = get.N(this)
47 function
id = get.
id(this)
48 id = this.sfhandle.
id;
51 function conds = get_conds(this)
55 function lc = lincomb_sequence(this, descr)
57 coeffs = this.sfhandle.coefficients(descr);
58 lc = this.bb * coeffs;
62 methods(Access=private)
64 function fill_fields(this, rmodel, detailed_data)
65 this.bb = this.sfhandle.project_components(rmodel, detailed_data);
68 function copy_extract(this, reduced_data, rmodel)
69 this.sfhandle = reduced_data.sfhandle;
70 rn = get_by_description(rmodel.N, this.
id);
73 error('N too large for current size of reduced data!');
76 this.bb = reduced_data.bb(1:rn);
Interface for leaf nodes of the DataTree in Greedy.User.ReducedData objects.
Interface classes to be implemented by the Greedy.Algorithm user.
This is the interface for a reduced model providing methods to compute low dimensional reduced simula...
Customizable implementation of an abstract greedy algorithm.