![]() |
- 3.0.2 core module.
|
Class that performs interpolation of data in time. More...
#include <Interpolation.h>
Public Member Functions | |
| Interpolation (const InterpolationType &type=LIN) | |
| Default constructor. More... | |
| Interpolation (const Interpolation &arg) | |
| Copy Constructor. More... | |
| void | interpolate (const tpl::TimeArray< SCALAR > &timeArray, const DiscreteArray_t &dataArray, const SCALAR &enquiryTime, Data_T &enquiryData, int greatestLessTimeStampIndex=-1) |
| This method performs the interpolation. More... | |
| int | getGreatestLessTimeStampIndex () |
| access the greatest index which is smaller than the inquired interpolation time More... | |
| InterpolationType | getInterpolationType () const |
| get the employed interpolation type More... | |
| void | changeInterpolationType (const InterpolationType &type) |
| change the interpolation type More... | |
| int | findIndex (const tpl::TimeArray< SCALAR > &timeArray, const SCALAR &enquiryTime) |
| find an index corresponding to a certain inquiry time More... | |
Public Attributes | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef DiscreteArray< Data_T, Alloc_Data > | DiscreteArray_t |
Protected Attributes | |
| int | index_ |
| InterpolationType | type_ |
Class that performs interpolation of data in time.
This class performs interpolation of a data array based on timestamps
| Data_T | the data type for interpolation, e.g. a scalar or a StateVector |
| Alloc_Data | An optional allocator for the data type |
| Alloc_Time | An optional allocator for the time data type |
|
inline |
Default constructor.
| type | The interpolation strategy to use |
|
inline |
Copy Constructor.
|
inline |
This method performs the interpolation.
| timeArray | timing information of the data points |
| dataArray | the data points in form of a DiscreteArray |
| enquiryTime | the time where to evaluate the interpolation |
| enquiryData | the result of the interpolation |
| greatestLessTimeStampIndex | the smallest index corresponding to a time smaller than the inquired Time |
Referenced by ct::core::DiscreteTrajectoryBase< STATE_DIM, CONTROL_DIM, SCALAR >::eval(), and TEST().
|
inline |
access the greatest index which is smaller than the inquired interpolation time
|
inline |
get the employed interpolation type
Referenced by ct::core::DiscreteTrajectoryBase< STATE_DIM, CONTROL_DIM, SCALAR >::operator=().
|
inline |
change the interpolation type
Referenced by ct::core::DiscreteTrajectoryBase< STATE_DIM, CONTROL_DIM, SCALAR >::operator=(), and ct::core::DiscreteTrajectoryBase< STATE_DIM, CONTROL_DIM, SCALAR >::setInterpolationType().
|
inline |
find an index corresponding to a certain inquiry time
Referenced by ct::core::DiscreteTrajectoryBase< STATE_DIM, CONTROL_DIM, SCALAR >::getIndexFromTime(), and ct::core::Interpolation< CONTROL_DIM, SCALAR, double >::interpolate().
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef DiscreteArray<Data_T, Alloc_Data> ct::core::Interpolation< Data_T, Alloc_Data, SCALAR >::DiscreteArray_t |
|
protected |
|
protected |