#include <PadeTableODE.h>
|
void | calculate (double tau, double inputCurrent, double dIdt, double d2Id2t, const double *x, unsigned lenX, unsigned firstNode, double *derivative) const |
|
unsigned | getPadeColumn () const |
|
unsigned | getPadeRow () const |
|
unsigned | nParameters () const |
|
| PadeTableODE (unsigned padeRow, unsigned padeColumn) |
|
void | setParameters (const double *pars, unsigned nPars) |
|
Definition at line 11 of file PadeTableODE.h.
PadeTableODE::PadeTableODE |
( |
unsigned |
padeRow, |
|
|
unsigned |
padeColumn |
|
) |
| |
Definition at line 6 of file PadeTableODE.cc.
References col_, Exception, and row_.
11 "In PadeTableODE constructor: Pade table row number out of range");
13 "In PadeTableODE constructor: Pade table column number out of range");
void PadeTableODE::calculate |
( |
double |
tau, |
|
|
double |
inputCurrent, |
|
|
double |
dIdt, |
|
|
double |
d2Id2t, |
|
|
const double * |
x, |
|
|
unsigned |
lenX, |
|
|
unsigned |
firstNode, |
|
|
double * |
derivative |
|
) |
| const |
Definition at line 16 of file PadeTableODE.cc.
References assert(), col_, Exception, row_, and metsig::tau.
23 "In PadeTableODE::calculate: insufficient number of variables");
25 "In PadeTableODE::calculate: delay time is not positive");
63 2.0*dIdt + 0.5*
tau*d2Id2t;
78 2.0*(currentIn-
x[firstNode]-
tau*
x[firstNode+1])/
tau/
tau;
82 derivative[firstNode+1] = (6.0*(currentIn -
x[firstNode]) -
89 12.0*(currentIn -
x[firstNode])/
tau/
tau -
90 6.0*(
x[firstNode+1] + dIdt)/
tau + d2Id2t;
106 6.0*(currentIn -
x[firstNode] -
tau*
x[firstNode+1] -
112 currentIn -
x[firstNode] - 0.25*
tau*dIdt -
113 0.75*
tau*
x[firstNode+1] - 0.25*
tau*
tau*
x[firstNode+2]);
118 currentIn -
x[firstNode] - 0.4*
tau*dIdt +
119 0.05*
tau*
tau*d2Id2t - 0.6*
tau*
x[firstNode+1] -
Derivative< X, A >::type derivative(const A &_)
unsigned PadeTableODE::getPadeColumn |
( |
| ) |
const |
|
inline |
unsigned PadeTableODE::getPadeRow |
( |
| ) |
const |
|
inline |
unsigned PadeTableODE::nParameters |
( |
| ) |
const |
|
inline |
void PadeTableODE::setParameters |
( |
const double * |
pars, |
|
|
unsigned |
nPars |
|
) |
| |
unsigned PadeTableODE::col_ |
|
private |
unsigned PadeTableODE::row_ |
|
private |