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.
tuw::Integrator::Integrator |
( |
| ) |
|
|
default |
virtual tuw::Integrator::~Integrator |
( |
| ) |
|
|
virtualdefault |
tuw::Integrator::Integrator |
( |
const Integrator & |
| ) |
|
|
default |
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.
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.
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.
double tuw::Integrator::comp_ |
|
private |
double tuw::Integrator::x_ |
|
private |
The documentation for this class was generated from the following file: