110 this =
this@dscomponents.ACompEvalCoreFun(dynsys);
118 copy =
clone@dscomponents.ACompEvalCoreFun(
this, copy);
134 error(
" dont call me (direct overload of evaluate for efficiency ");
148 h = pm.nextPlot(
" activation_fun ",
" External input activation function ",
" time ",
" factor ");
149 t = linspace(0,min(this.
System.
Model.T,
this.MaxActivationTime*1.2),2000);
159 #if 0 //mtoc++: 'set.ActivationFunType'
163 k = kernels.GaussKernel(28.206364723698);
165 k = kernels.GaussKernel;
180 #if 0 //mtoc++: 'get.ActivationFunType'
193 f = (g.evaluateScalar(t-27)-.4).*(t<=54)/.6;
198 f = (g.evaluateScalar(t-ts)-.001).*(t<=ts)/.999 ...
199 + (t>ts).*(t<=te) ...
200 + (g.evaluateScalar(t-te)-.001).*(t>te).*(t<=te+ts)/.999;
209 if isfield(from,
" System ")
210 obj.System= from.System;
213 if isfield(from,
" fAFT ")
218 obj.ActivationFunType= AFT;
219 obj =
loadobj@dscomponents.ACompEvalCoreFun(obj, from);
221 obj =
loadobj@dscomponents.ACompEvalCoreFun(obj);
function evaluateCoreFun()
logical TimeDependent
Flag that indicates if the ACoreFun is (truly) time-dependent.
Model
The Model this System is attached to.
static const .double ActivationTransitionTime
The time in seconds needed before the activation function reaches its maximum value and decays back t...
PlotManager: Small class that allows the same plots generated by some script to be either organized a...
static function obj = loadobj(obj, from)
logical LeaveOpen
Flag indicating if the plots should be left open once the PlotManager is deleted (as variable) ...
static const .double MaxActivationTime
The maximum time in seconds that spans the support of the piecewise activation function. It is composed of gaussian-shaped increase/decrease ends and a constant one in between. For the default settings, we would have a maximum duration of 500s-2*30s=440s for the activation rate of level one. [s].
models.BaseFirstOrderSystem System
The system associated with the current ACoreFun.
function plotActivationFun(colvec< double > mu, pm)
colvec< double > mu
The current model parameter mu for evaluations. Will not be persisted as only valid for runtime durin...
ACompEvalCoreFun: A normal CoreFun which supports single-component evaluation.
function copy = clone(copy)
Call superclass method.
integer ActivationFunType
Type of the activation function.
function f = activationFun(double t,colvec< double > mu)