KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PolyConfig.m
Go to the documentation of this file.
1 namespace kernels{
2 namespace config{
3 
4 
5 /* (Autoinserted by mtoc++)
6  * This source code has been filtered by the mtoc++ executable,
7  * which generates code that can be processed by the doxygen documentation tool.
8  *
9  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
10  * Except for the comments, the function bodies of your M-file functions are untouched.
11  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
12  * attached source files that are highly readable by humans.
13  *
14  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
15  * the correct locations in the source code browser.
16  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
17  */
18 
20  :public IClassConfig {
39  public:
40 
51  public:
52 
53 
54  PolyConfig(values) {
55  if nargin == 1
56  this.Degrees= values;
57  end
58  this.RequiredPrototypeClass= " kernels.PolyKernel ";
59  this.Prototype= kernels.PolyKernel;
60  }
61 
62 
63  function n = getNumConfigurations() {
64  n = length(this.Degrees);
65  }
66 
67 
68  function k = configureInstance(nr) {
69  k = this.getProtoClass;
70  k.Degree= this.Degrees(nr);
71  }
72 
73 
74  function str = getConfigurationString(nr,unused1) {
75  str = [];
76  if ~isempty(this.Degrees)
77  str = sprintf(" Degree: %g ",this.Degrees(nr));
78  end
79  }
80 
81 
82  function str = getConfiguredPropertiesString() {
83  str = " Degree ";
84  }
85 
86 
87  function conf = getSubPart(partNr,totalParts) {
88  conf = this.clone;
89  conf.Degrees= this.Degrees(this.getPartIndices(partNr, totalParts));
90  }
91 
92 
93  function copy = clone() {
94  copy = kernels.config.PolyConfig;
95  copy = clone@IClassConfig(this, copy);
96  copy.Degrees= this.Degrees;
97  }
98 
99 
100 
101  protected:
102 
103  function collectRanges(ptable,proppath) {
104  this.addRange(ptable, [proppath [" Degrees "]],min(this.Degrees),max(this.Degrees));
105  }
106 
107 
108 
109 };
110 }
111 }
112 
IClassConfig: Abstract interface for a set of configurations that can be applied to a given algorithm...
Definition: IClassConfig.m:17
function copy = clone()
Definition: PolyConfig.m:93
function str = getConfiguredPropertiesString()
Returns a string of the changed properties by this IClassConfig instance.
Definition: PolyConfig.m:82
function n = getNumConfigurations()
Returns the number of configurations that can be applied.
Definition: PolyConfig.m:63
function idx = getPartIndices(partNr, totalParts)
Definition: IClassConfig.m:130
function ptype = getProtoClass()
Definition: IClassConfig.m:122
function conf = getSubPart(partNr, totalParts)
Definition: PolyConfig.m:87
rowvec< double > Degrees
The different polynomial kernel degrees to use.
Definition: PolyConfig.m:41
function k = configureInstance(nr)
Definition: PolyConfig.m:68
function collectRanges(ptable, proppath)
Definition: PolyConfig.m:103
function addRange(ptable, proppath, minval, maxval)
Definition: IClassConfig.m:136
PolyConfig: Configuration settings for polynomial kernels.
Definition: PolyConfig.m:19
ICloneable Prototype
The prototype class that is to be used as base class before configuring a new instance.
Definition: IClassConfig.m:42
char RequiredPrototypeClass
Determines the class that is allowed to be configured.
Definition: IClassConfig.m:55
function str = getConfigurationString(nr, unused1)
Definition: PolyConfig.m:74