#include <mrpt/math/CSplineInterpolator1D.h>

Public Member Functions | |
| CSplineInterpolator1D (const std::vector< double > &initial_x, const std::vector< double > &initial_y, bool wrap2pi=false) | |
| Constructor with optional initial values. | |
| CSplineInterpolator1D (bool wrap2pi=false) | |
| Constructor. | |
| void | setWrap2pi (bool wrap) |
| If set to true, the interpolated data will be wrapped to ]-pi,pi]. | |
| bool | getWrap2pi () |
| Return the wrap property. | |
| void | setXY (const std::vector< double > &x, const std::vector< double > &y, bool clearPreviousContent=true) |
| Set all the data at once . | |
| void | appendXY (double x, double y) |
| Append a new point:. | |
| void | clear () |
| Clears all stored points. | |
| double & | query (double x, double &y, bool &out_valid) const |
| Query an interpolation of the curve at some "x". | |
| bool | queryVector (const vector_double &x, vector_double &out_y) const |
| As query, but for a whole vector at once. | |
Private Attributes | |
| mrpt::utils::map_serializable < double, double > | m_x2y |
| The placeholders for the data. | |
| bool | m_wrap2pi |
| Whether to wrap "y". | |
This class internally relies on mrpt::math::spline. Optionally the y coordinate can be set as wrapped in ]-pi,pi]. For querying interpolated points, see \ sa mrpt::math::spline, mrpt::poses::CPose3DInterpolator
Definition at line 47 of file CSplineInterpolator1D.h.
| mrpt::math::CSplineInterpolator1D::CSplineInterpolator1D | ( | const std::vector< double > & | initial_x, | |
| const std::vector< double > & | initial_y, | |||
| bool | wrap2pi = false | |||
| ) |
Constructor with optional initial values.
| mrpt::math::CSplineInterpolator1D::CSplineInterpolator1D | ( | bool | wrap2pi = false |
) |
Constructor.
| void mrpt::math::CSplineInterpolator1D::appendXY | ( | double | x, | |
| double | y | |||
| ) |
Append a new point:.
| void mrpt::math::CSplineInterpolator1D::clear | ( | void | ) | [inline] |
| bool mrpt::math::CSplineInterpolator1D::getWrap2pi | ( | ) | [inline] |
| double& mrpt::math::CSplineInterpolator1D::query | ( | double | x, | |
| double & | y, | |||
| bool & | out_valid | |||
| ) | const |
Query an interpolation of the curve at some "x".
The result is stored in "y". If the "x" point is out of range, "valid_out" is set to false.
| bool mrpt::math::CSplineInterpolator1D::queryVector | ( | const vector_double & | x, | |
| vector_double & | out_y | |||
| ) | const |
As query, but for a whole vector at once.
| void mrpt::math::CSplineInterpolator1D::setWrap2pi | ( | bool | wrap | ) | [inline] |
If set to true, the interpolated data will be wrapped to ]-pi,pi].
Definition at line 70 of file CSplineInterpolator1D.h.
| void mrpt::math::CSplineInterpolator1D::setXY | ( | const std::vector< double > & | x, | |
| const std::vector< double > & | y, | |||
| bool | clearPreviousContent = true | |||
| ) |
Set all the data at once .
The vectors must have the same length.
bool mrpt::math::CSplineInterpolator1D::m_wrap2pi [private] |
mrpt::utils::map_serializable<double,double> mrpt::math::CSplineInterpolator1D::m_x2y [private] |
| Page generated by Doxygen 1.5.8 for MRPT 0.6.5 SVN: at Thu Feb 26 02:07:47 EST 2009 |