69 this.
Name=
" Kernel test model ";
74 this.
Sampler= sampling.GridSampler;
80 s = spacereduction.PODReducer;
89 this.
System= models.synth.AffParamKernelTestSys(
this, pos_flag);
99 #if 0 //mtoc++: 'set.dim'
100 function
dim(value) {
101 if round(value) ~= value || ~isscalar(value) || value <= 0
102 error(
" Value must be a positive integer scalar ");
116 eval(sprintf(
" t = models.synth.AffParamKernelTest.getTest%d; ",
k))
117 fprintf(
" --------------- Running test getTest%d ---------------\n ",
k);
118 models.synth.AffParamKernelTest.runTest(
t);
128 pm = ma.analyzeError;
134 m = models.synth.AffParamKernelTest(varargin[:]);
136 V = ones(m.dim,1)*sqrt(1/m.dim);
137 m.SpaceReducer= spacereduction.ManualReduction(V);
142 m = models.synth.AffParamKernelTest(varargin[:]);
144 m.System.Inputs[1] = @(
t)4;
145 m.System.B= dscomponents.LinearInputConv(ones(m.dim,1));
147 V = ones(m.dim,1)*sqrt(1/m.dim);
148 m.SpaceReducer= spacereduction.ManualReduction(V);
153 m = models.synth.AffParamKernelTest(varargin[:]);
154 m.System.x0= dscomponents.ConstInitialValue(rand(m.dim,1));
159 m = models.synth.AffParamKernelTest(varargin[:]);
160 m.System.x0= dscomponents.ConstInitialValue(rand(m.dim,1));
161 V = ones(m.dim,1)*sqrt(1/m.dim);
162 m.SpaceReducer= spacereduction.ManualReduction(V);
167 m = models.synth.AffParamKernelTest(varargin[:]);
169 m.System.B= dscomponents.LinearInputConv(rand(m.dim,1));
170 m.System.Inputs[1] = @(
t)4;
175 m = models.synth.AffParamKernelTest(varargin[:]);
177 m.System.B= dscomponents.LinearInputConv(rand(m.dim,1));
178 m.System.Inputs[1] = @(
t)4;
180 V = ones(m.dim,1)*sqrt(1/m.dim);
181 m.SpaceReducer= spacereduction.ManualReduction(V);
186 m = models.synth.AffParamKernelTest(varargin[:]);
188 m.System.Inputs[1] = @(
t)4;
192 m.System.B= dscomponents.LinearInputConv(B);
197 m = models.synth.AffParamKernelTest(varargin[:]);
199 m.System.Inputs[1] = @(
t)4;
203 m.System.B= dscomponents.LinearInputConv(B);
205 V = ones(m.dim,1)*sqrt(1/m.dim);
206 m.SpaceReducer= spacereduction.ManualReduction(V);
211 m = models.synth.AffParamKernelTest(varargin[:]);
213 m.System.Inputs[1] = @(
t)4;
215 m.System.x0= dscomponents.ConstInitialValue((rand(m.dim,1)-.5)*3);
219 m.System.B= dscomponents.LinearInputConv(B);
221 V = ones(m.dim,1)*sqrt(1/m.dim);
222 m.SpaceReducer= spacereduction.ManualReduction(V);
227 m = models.synth.AffParamKernelTest(varargin[:]);
230 m.System.Inputs[1] = @(
t)sin(2*
t);
232 m.System.x0= dscomponents.ConstInitialValue((rand(m.dim,1)-.5)*3);
236 m.System.B= dscomponents.LinearInputConv(B);
238 V = ones(m.dim,1)*sqrt(1/m.dim);
239 m.SpaceReducer= spacereduction.ManualReduction(V);
244 m = models.synth.AffParamKernelTest(varargin[:]);
247 m.System.B= dscomponents.LinearInputConv(rand(m.dim,1));
248 m.System.Inputs[1] = @(
t)sin(2*
t);
ModelAnalyzer: Analysis tools for reduced models and approximations.
char Name
The name of the Model.
Kernel core function test model 1.
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.
integer TrainingInputs
The indices of inputs to use for training data generation. Uses the DefaultInput if not set (and Defa...
sampling.BaseSampler Sampler
The sampling strategy the Model uses.
models.BaseFirstOrderSystem System
The actual dynamical system used in the model.
static function m = getTest2(varargin)
static function r = runTest(models.BaseFullModel model)
function registerProps(varargin)
Call this method at any class that defines DPCM observed properties.
static function m = getTest11(varargin)
static function m = getTest8(varargin)
static function m = getTest1(varargin)
static function m = getTest10(varargin)
static function res = test_RunAffParamKernelTests()
A variable number of input arguments.
static function m = getTest7(varargin)
static function m = getTest3(varargin)
solvers.BaseSolver ODESolver
The solver to use for the ODE. Must be an instance of any solvers.BaseSolver subclass.
integer DefaultInput
The default input to use if none is given.
approx.BaseApprox Approx
The approximation method for the CoreFunction.
double T
The final timestep up to which to simulate.
dim
The system's dimension.
static function m = getTest4(varargin)
spacereduction.BaseSpaceReducer SpaceReducer
The reduction algorithm for subspaces.
AffParamKernelTest(dims, pos_flag)
static function m = getTest6(varargin)
static function m = getTest9(varargin)
function offlineGenerations()
Performs all large offline computations for model reduction.
static function m = getTest5(varargin)