9 const double*
x,
const unsigned lenX,
10 const unsigned firstNode,
15 "In ThirdOrderDelayODE::calculate: insufficient number of variables");
17 "In ThirdOrderDelayODE::calculate: delay time is not positive");
21 derivative[firstNode] = x[firstNode+1];
22 derivative[firstNode+1] = x[firstNode+2];
23 derivative[firstNode+2] = 6.0/
a_*(currentIn - x[firstNode] -
24 c_*tau*x[firstNode+1] -
25 b_/2.0*tau*tau*x[firstNode+2])/tau/tau/tau;
Derivative< X, A >::type derivative(const A &_)
void calculate(double tau, double inputCurrent, double dIdt, double d2Id2t, const double *x, unsigned lenX, unsigned firstNode, double *derivative) const
void setParameters(const double *pars, unsigned nPars)