|
signals-cpp
|
Specification for numerically integrating a black box function using Euler's method. More...
#include <Integration.h>
Static Public Member Functions | |
| template<typename T, typename BaseSignalSpec, typename TangentSignalSpec> | |
| static bool | integrate (Signal< T, BaseSignalSpec, TangentSignalSpec > &xInt, const Signal< T, TangentSignalSpec, TangentSignalSpec > &x, const double &t0, const double &tf, const bool &insertIntoHistory) |
| Euler integration implementation. | |
Specification for numerically integrating a black box function using Euler's method.
|
inlinestatic |
Euler integration implementation.
| xInt | The output signal representing the integration. |
| x | The input signal to be integrated. |
| t0 | The start time for the integration. |
| tf | The time to integrate to. Ideally the delta from the start time is small. |
| insertIntoHistory | Whether to store the result in xInt's memory. |
Euler integration increments the current integral by
\(x(t_f)\Delta t\)