openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Public Member Functions | List of all members
Lapicque Class Reference

#include <Lapicque.h>

Collaboration diagram for Lapicque:

Public Member Functions

 Lapicque (opencarp::timer_manager *to, float pmin, float pmax, int np, float tol, float delay)
 constructor More...
 
bool check (bool fire, float &, int, int)
 check if the Lapicque curve is finished and update current More...
 
void print (std::ostream &)
 
bool init (int, int)
 initial first step More...
 

Detailed Description

Definition at line 12 of file Lapicque.h.

Constructor & Destructor Documentation

◆ Lapicque()

Lapicque::Lapicque ( opencarp::timer_manager to,
float  pmin,
float  pmax,
int  np,
float  tol,
float  delay 
)

constructor

Parameters
totimer manager
pminminimum pulse duration
pmaxmaximum pulse duration
npnumber of pulse durations
tolstopping criterion
delaytime after pulse end to check for AP

Definition at line 17 of file Lapicque.cc.

Member Function Documentation

◆ check()

bool Lapicque::check ( bool  fire,
float &  curr,
int  doppind,
int  stimind 
)

check if the Lapicque curve is finished and update current

Parameters
firetrue if an action potential fired at this current
currtest value of current
doppindindex of DOPPLE timer
stimindindex of stimulus timer
Postcondition
the dopple timer is set to the next instant to check for an AP
the single shot stim timer is set for now with the appropriate stim width
curr is adjusted closer to the threshold

return true iff thresholds found for all widths

Definition at line 45 of file Lapicque.cc.

Here is the caller graph for this function:

◆ init()

bool Lapicque::init ( int  doppind,
int  stimind 
)

initial first step

Parameters
doppindDopple timer index
stimindindex of stimulus timer
Postcondition
the dopple timer is set to the next instant to check for an AP
the stimulus eq timer is replaced with a single shot firing now
Returns
true if already initialized

Definition at line 87 of file Lapicque.cc.

Here is the caller graph for this function:

◆ print()

void Lapicque::print ( std::ostream &  ofs)

Definition at line 67 of file Lapicque.cc.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: