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
KernelLSConfig.m
Go to the documentation of this file.
1 namespace general{
2 namespace regression{
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 {
40  public:
41 
42  Lambdas = "[]";
43 
44 
45  public:
46 
47  KernelLSConfig(lambdas) {
48  if nargin == 1
49  this.Lambdas= lambdas;
50  end
51  this.RequiredPrototypeClass= " general.regression.KernelLS ";
52  this.Prototype= general.regression.KernelLS;
53  }
54 
55 
56  function integern = getNumConfigurations() {
57  n = 1;
58  }
67  function ICloneableobject = configureInstance(integer nr) {
68  object = this.getProtoClass;
69  object.lambda= this.Lambdas(nr);
70  }
83  function integerstr = getConfigurationString(nr) {
84  str = sprintf(" \lambda: %g ",this.Lambdas(nr));
85  }
95  function str = getConfiguredPropertiesString() {
96  str = " lambda ";
97  }
98 
99 
100  function conf = getSubPart(partNr,totalParts) {
101  conf = this.clone;
102  conf.Lambdas= this.Lambdas(this.getPartIndices(partNr, totalParts));
103  }
104 
105 
106  function copy = clone() {
107  copy = general.regression.KernelLSConfig;
108  copy = clone@IClassConfig(this, copy);
109  copy.Lambdas= this.Lambdas;
110  }
111 
112 
113 
114  protected:
115 
116  function collectRanges(ptable,proppath) {
117  this.addRange(ptable, [proppath [" lambda "]],min(this.Dimension),max(this.Lambdas));
118  }
119 
120 
121 
122 };
123 }
124 }
125 
IClassConfig: Abstract interface for a set of configurations that can be applied to a given algorithm...
Definition: IClassConfig.m:17
function conf = getSubPart(partNr, totalParts)
function integer str = getConfigurationString(nr)
Returns the number of configurations that can be applied.
function integer n = getNumConfigurations()
Returns the number of configurations that can be applied.
function idx = getPartIndices(partNr, totalParts)
Definition: IClassConfig.m:130
function ptype = getProtoClass()
Definition: IClassConfig.m:122
An integer value.
function str = getConfiguredPropertiesString()
Returns a string of the changed properties by this IClassConfig instance.
function addRange(ptable, proppath, minval, maxval)
Definition: IClassConfig.m:136
ICloneable Prototype
The prototype class that is to be used as base class before configuring a new instance.
Definition: IClassConfig.m:42
function ICloneable object = configureInstance(integer nr)
Gets a new configured instance for a give config number.
char RequiredPrototypeClass
Determines the class that is allowed to be configured.
Definition: IClassConfig.m:55
function collectRanges(ptable, proppath)