Minimal class performing numerically stable integration (using the Kahan summation algorithm).
More...
#include <integrator.hpp>
Minimal class performing numerically stable integration (using the Kahan summation algorithm).
Definition at line 44 of file integrator.hpp.
◆ Integrator() [1/3]
| tuw::Integrator::Integrator |
( |
| ) |
|
|
default |
◆ ~Integrator()
| virtual tuw::Integrator::~Integrator |
( |
| ) |
|
|
virtualdefault |
◆ Integrator() [2/3]
| tuw::Integrator::Integrator |
( |
const Integrator & |
| ) |
|
|
default |
◆ Integrator() [3/3]
◆ integrate()
| void tuw::Integrator::integrate |
( |
const double & |
_dx | ) |
|
|
inline |
Addds a new value to the integrated value.
- Parameters
-
Definition at line 86 of file integrator.hpp.
◆ intOutput()
| const double& tuw::Integrator::intOutput |
( |
| ) |
const |
|
inline |
Returns the integrator value.
- Returns
- Const reference to integrated value.
Definition at line 78 of file integrator.hpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ reset()
| void tuw::Integrator::reset |
( |
const double & |
_x0 | ) |
|
|
inline |
resets the integrated value and compensation variable.
- Parameters
-
| _x0 | Value the integrator is resetted to |
Definition at line 69 of file integrator.hpp.
◆ comp_
| double tuw::Integrator::comp_ |
|
private |
◆ x_
| double tuw::Integrator::x_ |
|
private |
The documentation for this class was generated from the following file: