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
TestFunctions.m
Go to the documentation of this file.
1 namespace testing{
2 
3 
4 /* (Autoinserted by mtoc++)
5  * This source code has been filtered by the mtoc++ executable,
6  * which generates code that can be processed by the doxygen documentation tool.
7  *
8  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
9  * Except for the comments, the function bodies of your M-file functions are untouched.
10  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
11  * attached source files that are highly readable by humans.
12  *
13  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
14  * the correct locations in the source code browser.
15  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
16  */
17 
39  public: /* ( Static ) */
40 
41 
42  static function [f , r ] = F3() {
43  f = @(x,~,~)(1.25 + cos(5.4*x(2,:))) ./ (6+6*(3*x(1,:)-1).^2);
44  r = [0 1; 0 1];
45  }
53  static function [f , r ] = F7() {
54  f = @(x,~,~)2*cos(10*x(1,:)).*sin(10*x(2,:)) + sin(10*x(1,:).*x(2,:));
55  r = [0 1; 0 1];
56  }
64  static function [f , r ] = F8() {
65  f = @(x,~,~)exp(-((5-10*x(1,:)).^2)/2) + .75*exp(-((5-10*x(2,:)).^2)/2)...
66  +.75*exp(-((5-10*x(1,:)).^2)/2).*exp(-((5-10*x(2,:)).^2)/2);
67  r = [0 1; 0 1];
68  }
76  static function [f , r ] = F10() {
77  f = @(x,~,~)exp(-0.04*sqrt(sum((80*x(1,:)-40).^2 + (90*x(2,:)-45).^2)))...
78  *cos(.15*sqrt(sum((80*x(1,:)-40).^2 + (90*x(2,:)-45).^2)));
79  r = [0 1; 0 1];
80  }
88  static function [f , r ] = Franke2D() {
89  f = @(x,~,~).75*exp(-sum((9*x-2).^2)/4) ...
90  + .75*exp(-((9*x(1,:)+1).^2)/49 - (9*x(2,:)+1)/10) ...
91  + .5*exp(-((9*x(1,:)-7).^2 + (9*x(2,:)-3).^2)/4) ...
92  - .2*exp(-(9*x(1,:)-4).^2 - (9*x(2,:)-7).^2);
93  r = [0 1; 0 1];
94  }
102  static function [f , r ] = Franke3D() {
103  f = @(x,~,~).75*exp(-sum((9*x-2).^2)/4) ...
104  + .75*exp(-((9*x(1,:)+1).^2)/49 - sum((9*x(2:3,:)+1)/10)) ...
105  + .5*exp(-((9*x(1,:)-7).^2 + (9*x(2,:)-3).^2 + (9*x(3,:)-5).^2)/4) ...
106  - .2*exp(-(9*x(1,:)-4).^2 - (9*x(2,:)-7).^2 - (9*x(3,:)-5).^2);
107  r = [0 1; 0 1; 0 1];
108  }
116 };
117 }
118 
static function [ f , r ] = F10()
Function "F10" from [RB99].
Definition: TestFunctions.m:76
static function [ f , r ] = F7()
Function "F10" from [RB99].
Definition: TestFunctions.m:53
static function [ f , r ] = F8()
Function "F8" from [RB99].
Definition: TestFunctions.m:64
static function [ f , r ] = F3()
Function "F3" from [RB99].
Definition: TestFunctions.m:42
static function [ f , r ] = Franke3D()
Test function from [LM05, FN80].
static function [ f , r ] = Franke2D()
Test function from [FN80].
Definition: TestFunctions.m:88
TestFunctions: Some test functions for nonlinear approximation methods.
Definition: TestFunctions.m:18