Apollo
6.0
Open source self driving car software
|
linear interpolation from key (double, double) to one double value. More...
#include <interpolation_2d.h>
Public Types | |
typedef std::vector< std::tuple< double, double, double > > | DataType |
typedef std::pair< double, double > | KeyType |
Public Member Functions | |
Interpolation2D ()=default | |
bool | Init (const DataType &xyz) |
initialize Interpolation2D internal table More... | |
double | Interpolate (const KeyType &xy) const |
linear interpolate from 2D key (double, double) to one double value. More... | |
linear interpolation from key (double, double) to one double value.
typedef std::vector<std::tuple<double, double, double> > apollo::control::Interpolation2D::DataType |
typedef std::pair<double, double> apollo::control::Interpolation2D::KeyType |
|
default |
bool apollo::control::Interpolation2D::Init | ( | const DataType & | xyz | ) |
initialize Interpolation2D internal table
xyz | passing interpolation initialization table data |
double apollo::control::Interpolation2D::Interpolate | ( | const KeyType & | xy | ) | const |
linear interpolate from 2D key (double, double) to one double value.
xyz | passing interpolation initialization table data |