KerMor
0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
Home
Getting started
Topics
Techdocs
Developer
Packages
Class Documentation
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
rsPenaltyFunTest.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
18
function
rsPenaltyFunTest
() {
19
20
21
k
= kernels.GaussKernel(1);
22
figure(1);
23
24
g = logspace(-3,2,30);
25
for
gamma = g
26
k
.Gamma= gamma;
27
28
x = linspace(0,2*
k
.rm,200);
29
30
fx =
k
.evaluateScalar(x);
31
32
nx =
k
.evaluateD1(x) - (
k
.evaluateScalar(x)-1)./x;
33
nx2 =
k
.evaluateD1(x) - (
k
.evaluateScalar(x)-
k
.evaluateScalar(
k
.r0/2))./(x-
k
.r0/2);
34
nx3 =
k
.evaluateD1(x) - (
k
.evaluateScalar(x)-
k
.evaluateScalar(
k
.r0))./(x-
k
.r0);
35
36
plot(x,fx,
" r "
,x,nx,
" b "
,x,nx2,
" g "
,x,[nx3; 3*[0 diff(nx3)]],
" m "
,[
k
.rm
k
.rm],[0
k
.evaluateD1(
k
.rm) - (
k
.evaluateScalar(
k
.rm)-1)/
k
.rm],
" black "
,x,0,
" black "
);
37
axis tight;
38
pause;
39
end
40
}
62
};
testing.rsPenaltyFunTest
function rsPenaltyFunTest()
rsPenaltyFunTest:
Definition:
rsPenaltyFunTest.m:18
k
*for k
Definition:
Gordon66SarcoForceLength.m:114
core
+testing
rsPenaltyFunTest.m
KerMor 0.9 docs generated by
1.8.6