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
RCLadderFun.m
Go to the documentation of this file.
1 namespace models{
2 namespace circ{
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 dscomponents.ACoreFun {
39  public:
40 
41  RCLadderFun(sys,dim) {
42  this = this@dscomponents.ACoreFun(sys);
43  this.CustomProjection= true;
44  this.TimeDependent= false;
45  this.xDim= dim;
46  this.fDim= dim;
47  }
48 
49 
50  function fx = evaluateCoreFun(v,unused1) {
51  vd = exp(40*(v(1:end-1,:)-v(2:end,:)));
52  vdf = [vd; ones(1,size(v,2))];
53  vdb = [-exp(40*v(1,:)) + 2; vd];
54 
55  fx = vdb - vdf;
56  }
57 
58 
59  function fx = evaluateMulti(v,unused1,unused2) {
60  vd = exp(40*(v(1:end-1,:)-v(2:end,:)));
61  vdf = [vd; ones(1,size(v,2))];
62  vdb = [-exp(40*v(1,:)) + 2; vd];
63 
64  fx = vdb - vdf;
65  }
66 
67 
68  function target = project(V,W) {
69  target = this.clone;
70  target = project@dscomponents.ACoreFun(this, V, W, target);
71  }
72 
73 
74  function copy = clone() {
75  copy = models.RCLadderFun(this.Model);
76  copy = clone@dscomponents.ACoreFun(this, copy);
77  }
78 
79 
80 
81 };
82 }
83 }
84 
integer fDim
The current output dimension of the function.
Definition: ACoreFun.m:171
CustomProjection
Set this property if the projection process is customized by overriding the default project method...
Definition: ACoreFun.m:108
logical TimeDependent
Flag that indicates if the ACoreFun is (truly) time-dependent.
Definition: ACoreFun.m:84
function fx = evaluateCoreFun(v, unused1)
Definition: RCLadderFun.m:50
Basic interface for all dynamical system's core functions Inherits the AProjectable interface...
Definition: ACoreFun.m:18
integer xDim
The current state space dimension of the function's argument .
Definition: ACoreFun.m:151
function copy = clone()
Definition: RCLadderFun.m:74
V
The matrix of the biorthogonal pair .
Definition: AProjectable.m:61
function target = project(V, W)
Definition: RCLadderFun.m:68
function fx = evaluateMulti(v, unused1, unused2)
Definition: RCLadderFun.m:59
W
The matrix of the biorthogonal pair .
Definition: AProjectable.m:72