69 this.
Name=
" Kernel test model ";
75 this.
System= models.synth.KernelTestSys(
this, pos_flag);
78 this.
Sampler= sampling.GridSampler;
82 a = approx.KernelApprox(this.
System);
83 a.Algorithm= approx.algorithms.Componentwise;
84 ec = kernels.config.ParamTimeExpansionConfig;
85 ec.StateConfig= kernels.config.GaussConfig(
" G ",1);
86 ec.ParamConfig= kernels.config.GaussConfig(
" G ",1);
87 ec.ParamConfig= kernels.config.GaussConfig(
" G ",1);
88 a.Algorithm.ExpConfig= ec;
90 a.TrainDataSelector= data.selection.LinspaceSelector;
91 a.TrainDataSelector.Size= 150;
94 s = spacereduction.PODReducer;
109 #if 0 //mtoc++: 'set.dim'
110 function
dim(value) {
112 error(" Value must be a positive
integer scalar ");
126 eval(sprintf(
" t = models.synth.KernelTest.getTest%d; ",
k))
127 fprintf(
" --------------- Running test getTest%d ---------------\n ",
k);
128 models.synth.KernelTest.runTest(
t);
144 m = models.synth.KernelTest(varargin[:]);
146 V = ones(m.dim,1)*sqrt(1/m.dim);
147 m.SpaceReducer= spacereduction.ManualReduction(V);
152 m = models.synth.KernelTest(varargin[:]);
154 m.System.Inputs[1] = @(
t)4;
155 m.System.B= dscomponents.LinearInputConv(ones(m.dim,1));
158 V = ones(m.dim,1)*sqrt(1/m.dim);
159 m.SpaceReducer= spacereduction.ManualReduction(V);
164 m = models.synth.KernelTest(varargin[:]);
165 m.System.x0= dscomponents.ConstInitialValue(rand(m.dim,1));
170 m = models.synth.KernelTest(varargin[:]);
171 m.System.x0= dscomponents.ConstInitialValue(rand(m.dim,1));
172 V = ones(m.dim,1)*sqrt(1/m.dim);
173 m.SpaceReducer= spacereduction.ManualReduction(V);
178 m = models.synth.KernelTest(varargin[:]);
180 m.System.B= dscomponents.LinearInputConv(rand(m.dim,1));
181 m.System.Inputs[1] = @(
t)4;
187 m = models.synth.KernelTest(varargin[:]);
189 m.System.B= dscomponents.LinearInputConv(rand(m.dim,1));
190 m.System.Inputs[1] = @(
t)4;
193 V = ones(m.dim,1)*sqrt(1/m.dim);
194 m.SpaceReducer= spacereduction.ManualReduction(V);
199 m = models.synth.KernelTest(varargin[:]);
201 m.System.Inputs[1] = @(
t)4;
206 m.System.B= dscomponents.LinearInputConv(B);
211 m = models.synth.KernelTest(varargin[:]);
213 m.System.Inputs[1] = @(
t)4;
218 m.System.B= dscomponents.LinearInputConv(B);
220 V = ones(m.dim,1)*sqrt(1/m.dim);
221 m.SpaceReducer= spacereduction.ManualReduction(V);
226 m = models.synth.KernelTest(varargin[:]);
228 m.System.Inputs[1] = @(
t)4;
231 m.System.x0= dscomponents.ConstInitialValue((rand(m.dim,1)-.5)*3);
235 m.System.B= dscomponents.LinearInputConv(B);
237 V = ones(m.dim,1)*sqrt(1/m.dim);
238 m.SpaceReducer= spacereduction.ManualReduction(V);
243 m = models.synth.KernelTest(varargin[:]);
246 m.System.Inputs[1] = @(
t)sin(2*
t);
249 m.System.x0= dscomponents.ConstInitialValue((rand(m.dim,1)-.5)*3);
253 m.System.B= dscomponents.LinearInputConv(B);
255 V = ones(m.dim,1)*sqrt(1/m.dim);
256 m.SpaceReducer= spacereduction.ManualReduction(V);
261 m = models.synth.KernelTest(varargin[:]);
264 m.System.B= dscomponents.LinearInputConv(rand(m.dim,1));
265 m.System.Inputs[1] = @(
t)sin(2*
t);
ModelAnalyzer: Analysis tools for reduced models and approximations.
static function r = runTest(models.BaseFullModel model)
char Name
The name of the Model.
static function m = getTest6(varargin)
error.BaseEstimator ErrorEstimator
The associated error estimator for this model.
function [ models.ReducedModel reduced , double time ] = buildReducedModel(varargin)
Builds a reduced model from a full model.
The base class for any KerMor detailed model.
double dt
The desired time-stepsize for simulations.
sampling.BaseSampler Sampler
The sampling strategy the Model uses.
models.BaseFirstOrderSystem System
The actual dynamical system used in the model.
static function m = getTest11(varargin)
function registerProps(varargin)
Call this method at any class that defines DPCM observed properties.
KernelTest(dims, pos_flag)
dim
The system's dimension.
static function m = getTest2(varargin)
A variable number of input arguments.
static function m = getTest5(varargin)
solvers.BaseSolver ODESolver
The solver to use for the ODE. Must be an instance of any solvers.BaseSolver subclass.
static function m = getTest9(varargin)
approx.BaseApprox Approx
The approximation method for the CoreFunction.
double T
The final timestep up to which to simulate.
spacereduction.BaseSpaceReducer SpaceReducer
The reduction algorithm for subspaces.
static function m = getTest10(varargin)
function offlineGenerations()
Performs all large offline computations for model reduction.
Kernel core function test model 1.
static function m = getTest4(varargin)
static function m = getTest8(varargin)
function res = isposintscalar(value)
isposintscalar: Backwards-compatibility function for matlab versions greater than 2012a ...
static function m = getTest3(varargin)
static function m = getTest7(varargin)
double MaxTimestep
The maximum timestep allowed for any ODE solvers.
function matrix< double > mu = getRandomParam(integer num,integer seed)
Gets a random parameter sample from the system's parameter domain P.
static function m = getTest1(varargin)
static function res = test_RunKernelTests()