CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
A class that computes the integral over time of a pointed scalar. The integral is computed each time the update() method is called. Time step has to be constant. NewtonCotes methods of order 1,2,3,4,6,7,8,9,10 are implemented.
Definition at line 39 of file TimeIntegrator.hpp.
#include <TimeIntegrator.hpp>
Public Member Functions | |
TimeIntegrator (CepsReal *f, CepsReal timeStep, CepsUInt degree) | |
Constructor. More... | |
TimeIntegrator (const TimeIntegrator &)=default | |
Copy constructor. More... | |
~TimeIntegrator () | |
Destructor. More... | |
void | update () |
Progress in the computation of the sum. More... | |
CepsReal | get () const |
Current result. More... | |
Protected Attributes | |
CepsReal * | m_f |
Pointed scalar. More... | |
CepsVector< CepsReal > | m_current |
Values of f at previous time steps. More... | |
CepsVector< CepsVector< CepsReal > > | m_w |
Integration weights. More... | |
CepsUInt | m_s |
size More... | |
CepsUInt | m_pos |
Where to put coeff in current. More... | |
CepsReal | m_total |
The integral to be corrected in get() More... | |
CepsReal | m_dt |
Time stepi. More... | |
Constructor.
Definition at line 35 of file TimeIntegrator.cpp.
|
default |
Copy constructor.
TimeIntegrator::~TimeIntegrator | ( | ) |
Destructor.
Definition at line 65 of file TimeIntegrator.cpp.
CepsReal TimeIntegrator::get | ( | ) | const |
Current result.
Definition at line 98 of file TimeIntegrator.cpp.
void TimeIntegrator::update | ( | ) |
Progress in the computation of the sum.
Definition at line 70 of file TimeIntegrator.cpp.
|
protected |
Values of f at previous time steps.
Definition at line 65 of file TimeIntegrator.hpp.
|
protected |
Time stepi.
Definition at line 70 of file TimeIntegrator.hpp.
|
protected |
Pointed scalar.
Definition at line 64 of file TimeIntegrator.hpp.
|
protected |
Where to put coeff in current.
Definition at line 68 of file TimeIntegrator.hpp.
|
protected |
size
Definition at line 67 of file TimeIntegrator.hpp.
|
protected |
The integral to be corrected in get()
Definition at line 69 of file TimeIntegrator.hpp.
|
protected |
Integration weights.
Definition at line 66 of file TimeIntegrator.hpp.