128 this =
this@dscomponents.ACompEvalCoreFun(dynsys);
131 this.fTau= dynsys.Model.tau;
138 copy =
clone@dscomponents.ACompEvalCoreFun(
this, copy);
139 copy.gaussian= this.gaussian.clone;
140 copy.fTau= this.fTau;
141 copy.fAFT= this.fAFT;
155 error(
" This model overrides evaluate directly. ");
169 h = pm.nextPlot(
" activation_fun ",
" External input activation function ",
" time ",
" factor ");
170 t = linspace(0,min(this.
System.
Model.T,
this.MaxActivationTime*1.2),2000);
180 #if 0 //mtoc++: 'set.ActivationFunType'
184 k = kernels.GaussKernel(28.206364723698);
186 k = kernels.GaussKernel;
201 #if 0 //mtoc++: 'get.ActivationFunType'
214 idx = zeros(1,n*length(nr));
223 f = (this.gaussian.evaluateScalar(t-27)-.4).*(t<=54)/.6;
231 elseif t > ts && t <= te
234 f = (this.gaussian.evaluateScalar(t-ts)-.001)/.999;
235 elseif t>te && t<=te+ts
236 f = (this.gaussian.evaluateScalar(t-te)-.001)/.999;
242 f = (this.gaussian.evaluateScalar(t-ts)-.001).*(t<=ts)/.999 ...
243 + (t>ts).*(t<=te) ...
244 + (this.gaussian.evaluateScalar(t-te)-.001).*(t>te).*(t<=te+ts)/.999;
integer ActivationFunType
Type of the activation function.
function idx = nodepos(nr)
logical TimeDependent
Flag that indicates if the ACoreFun is (truly) time-dependent.
Model
The Model this System is attached to.
PlotManager: Small class that allows the same plots generated by some script to be either organized a...
static const .double ActivationTransitionTime
The time in seconds needed before the activation function reaches its maximum value and decays back t...
logical LeaveOpen
Flag indicating if the plots should be left open once the PlotManager is deleted (as variable) ...
models.BaseFirstOrderSystem System
The system associated with the current ACoreFun.
function f = activationFun(double t,colvec< double > mu)
colvec< double > mu
The current model parameter mu for evaluations. Will not be persisted as only valid for runtime durin...
function fx = evaluateCoreFun(colvec< double > x,double t)
Actual method used to evaluate the dynamical sytems' core function.
ACompEvalCoreFun: A normal CoreFun which supports single-component evaluation.
function copy = clone(copy)
Call superclass method.
function plotActivationFun(colvec< double > mu, pm)
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].