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
WendlandConfig.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 kernels.config.RBFConfig {
39  public:
40 
42 
43 
44  public:
45 
47 
48 
49  public:
50 
52  this = this@kernels.config.RBFConfig(varargin[:]);
53 
54  i.KeepUnmatched= true;
55  i.addParamValue('S',1);
56  i.addParamValue('Dim',1,@(v)isscalar(v));
57  i.parse(varargin[:]);
58  r = i.Results;
59  this.Smoothnesses= r.S;
60  if numel(this.Smoothnesses) ~= numel(this.Gammas)
61  error(" Need same amount of k values than gamma values ");
62  end
63  this.Dimension= r.Dim;
64  this.RequiredPrototypeClass= " kernels.Wendland ";
65  this.Prototype= kernels.Wendland;
66  }
67 
68 
69  function k = configureInstance(nr) {
70  k = configureInstance@kernels.config.RBFConfig(this, nr);
71  k.k= this.Smoothnesses(nr);
72  k.d= this.Dimension;
73  }
74 
75 
76  function str = getConfigurationString(nr,asCell) {
77  if nargin < 3
78  asCell = false;
79  end
80  str = getConfigurationString@kernels.config.RBFConfig(this, nr, asCell);
81  if asCell
82  str = [str [sprintf(" %d ",this.Smoothnesses(nr))]]; /* sprintf('%d',this.Dimension) */
83 
84  else
85  str = sprintf(" %s, k: %d, d:%d ",str,this.Smoothnesses(nr),this.Dimension);
86  end
87  }
88 
89 
90  function str = getConfiguredPropertiesString() {
91  str = getConfiguredPropertiesString@kernels.config.RBFConfig(this);
92  str = sprintf(" %s, k with fixed d=%d ",str,this.Dimension);
93  }
94 
95 
96  function conf = getSubPart(partNr,totalParts) {
97  conf = getSubPart@kernels.config.RBFConfig(this, partNr, totalParts);
98  idx = this.getPartIndices(partNr, totalParts);
99  conf.Smoothnesses= this.Smoothnesses(:,idx);
100  conf.Dimension= this.Dimension;
101  }
102 
103 
104  function copy = clone() {
105  copy = kernels.config.WendlandConfig(" G ",this.Gammas,...
106  " S ",this.Smoothnesses, " Dim ",this.Dimension);
107  copy = clone@kernels.config.RBFConfig(this, copy);
108  }
109 
110 
111  protected:
112 
113  function collectRanges(ptable,proppath) {
114  collectRanges@kernels.config.RBFConfig(this, ptable, proppath);
115  this.addRange(ptable, [proppath [" Smoothnesses "]],min(this.Smoothnesses),max(this.Smoothnesses));
116  this.addRange(ptable, [proppath [" Dimension "]],min(this.Dimension),max(this.Dimension));
117  }
118 
119 
120  function this = loadobj() {
121  if ~isa(this," kernels.config.WendlandConfig ")
122 
123  this = kernels.config.WendlandConfig;
124  end
125  }
126 
127 
128 };
129 }
130 }
131 
132 
133 
134 
135 
136 
function idx = getPartIndices(partNr, totalParts)
Definition: IClassConfig.m:130
function conf = getSubPart(partNr, totalParts)
RBFConfig: Base configuration settings for kernels implementing ARBFKernel.
Definition: RBFConfig.m:19
function addRange(ptable, proppath, minval, maxval)
Definition: IClassConfig.m:136
A variable number of input arguments.
function str = getConfigurationString(nr, asCell)
ICloneable Prototype
The prototype class that is to be used as base class before configuring a new instance.
Definition: IClassConfig.m:42
WendlandConfig: Configuration settings for Wendland kernels.
function k = configureInstance(nr)
char RequiredPrototypeClass
Determines the class that is allowed to be configured.
Definition: IClassConfig.m:55
function collectRanges(ptable, proppath)
function str = getConfiguredPropertiesString()
Returns a string of the changed properties by this IClassConfig instance.