#include <modm/math/interpolation/linear.hpp>
|
typedef T::FirstType | InputType |
|
typedef T::SecondType | OutputType |
|
typedef modm::SignedType< OutputType > | OutputSignedType |
|
typedef modm::WideType< OutputSignedType > | WideType |
|
|
| Linear (Accessor< T > supportingPoints, uint8_t numberOfPoints) |
| Constructor. More...
|
|
OutputType | interpolate (const InputType &value) const |
| Perform a linear interpolation. More...
|
|
template<typename T, template< typename > class Accessor = ::modm::accessor::Ram>
class modm::interpolation::Linear< T, Accessor >
- Template Parameters
-
template<typename T , template< typename > class Accessor = ::modm::accessor::Ram>
modm::interpolation::Linear< T, Accessor >::Linear |
( |
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::Linear< T, Accessor >::interpolate |
( |
const InputType & |
value | ) |
const |
Perform a linear interpolation.
- Parameters
-
- Returns
- interpolated value
The documentation for this class was generated from the following file: