Helios++
Helios software for LiDAR simulations
|
Parametric iterative Euler method. More...
#include <ParametricIterativeEulerMethod.h>
Public Member Functions | |
ParametricIterativeEulerMethod (Function< A, arma::Col< B >> &dydt, A const &t0, arma::Col< B > const &y0) | |
ParametricIterativeEulerMethod default constructor. More... | |
arma::Col< B > | eval (A const &h) override |
Iteratively compute the next value using Euler method. More... | |
virtual void | restart () |
Restart the ParametricIterativeEulerMethod so it is at its initial state again \(y(t_0) = y_0\). | |
Function< A, B > const & | getDydt () const |
A | getT () const |
void | setT (A const t) |
A | getT0 () const |
arma::Col< B > | getY () const |
void | setY (arma::Col< B > const y) |
arma::Col< B > | getY0 () const |
![]() | |
Function ()=default | |
arma::Col< B > | operator() (A const &x) |
Evaluate the function \(f(x)=y\). More... | |
Protected Attributes | |
Function< A, arma::Col< B > > & | dydt |
Reference to the parametric derivative function. More... | |
A | t0 |
The initial value of \(t\), \(t_0\). More... | |
A | t |
The current value of \(t\). More... | |
arma::Col< B > | y0 |
The initial value of \(\vec{y}\), \(\vec{y}(t_0)\). More... | |
arma::Col< B > | y |
The current value of \(\vec{y}(t)\). More... | |
Parametric iterative Euler method.
\[ \vec{y}(t+h) = \vec{y}(t) + h \frac{d}{dt}\vec{y}(t) \]
The parametric iterative Euler method computes the Euler method for independent vector components assuming at each iteration the given step. It has an error order \(Ch\) where \(h\) is the step size.
|
inline |
|
inlineoverridevirtual |
Iteratively compute the next value using Euler method.
It is assumed that the instance knows the current time, the current value and the current derivative. Thus, it can approximate the next value.
Calling this method updates the internal status of the ParametricIterativeEulerMethod so it is representing then ew state at \(t+h\)
h | The step size |
Implements fluxionum::Function< A, arma::Col< B > >.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Reference to the parametric derivative function.
\[ \frac{d}{dt}\vec{y}(t) \]
|
protected |
The current value of \(t\).
|
protected |
The initial value of \(t\), \(t_0\).
|
protected |
The current value of \(\vec{y}(t)\).
|
protected |
The initial value of \(\vec{y}\), \(\vec{y}(t_0)\).