openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Lapicque.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) NumeriCor GmbH
2 // SPDX-License-Identifier: LicenseRef-APL-1.1
3 
4 #ifndef LAPICQUE_H
5 #define LAPICQUE_H
6 #include "bench_utils.h"
7 #include "timer_utils.h"
8 #include <vector>
9 #include <iostream>
10 
11 
12 class Lapicque {
13  public:
14  Lapicque( opencarp::timer_manager *to, float pmin, float pmax, int np, float tol, float delay );
15  bool check( bool fire, float&, int, int );
16  void print( std::ostream & );
17  bool init( int, int );
18  private:
19  Bisect *_ap=NULL;
20  std::vector<float> _widths;
21  std::vector<float> _thresh;
22  float _delay;
24  int _currw = 0;
25  float _tol;
26  bool _init=false;
27 };
28 
29 #endif
Lapicque(opencarp::timer_manager *to, float pmin, float pmax, int np, float tol, float delay)
constructor
Definition: Lapicque.cc:17
void print(std::ostream &)
Definition: Lapicque.cc:67
bool init(int, int)
initial first step
Definition: Lapicque.cc:87
bool check(bool fire, float &, int, int)
check if the Lapicque curve is finished and update current
Definition: Lapicque.cc:45
centralize time managment and output triggering
Definition: timer_utils.h:59
Timers and timer manager.