#include <modm/math/interpolation/lagrange.hpp>
|
|
typedef T::FirstType | InputType |
| |
|
typedef T::SecondType | OutputType |
| |
|
| | Lagrange (Accessor< T > supportingPoints, uint8_t numberOfPoints) |
| | Constructor. More...
|
| |
| OutputType | interpolate (const InputType &value) const |
| | Perform a Lagrange-interpolation. More...
|
| |
template<typename T, template< typename > class Accessor = ::modm::accessor::Ram>
class modm::interpolation::Lagrange< T, Accessor >
- Warning
- Only floating points types are allowed as second type of modm::Pair, otherwise the calculation will deliver wrong results!
- Template Parameters
-
template<typename T , template< typename > class Accessor = ::modm::accessor::Ram>
| modm::interpolation::Lagrange< T, Accessor >::Lagrange |
( |
Accessor< T > |
supportingPoints, |
|
|
uint8_t |
numberOfPoints |
|
) |
| |
Constructor.
- Parameters
-
| supportingPoints | Supporting points of the curve. Needs to be an Array of modm::Pair<>. |
| numberOfPoints | length of supportingPoints |
template<typename T , template< typename > class Accessor = ::modm::accessor::Ram>
| OutputType modm::interpolation::Lagrange< T, Accessor >::interpolate |
( |
const InputType & |
value | ) |
const |
Perform a Lagrange-interpolation.
- Parameters
-
- Returns
- interpolated value
The documentation for this class was generated from the following file: