Apollo  6.0
Open source self driving car software
Public Types | Public Member Functions | List of all members
apollo::control::Interpolation2D Class Reference

linear interpolation from key (double, double) to one double value. More...

#include <interpolation_2d.h>

Collaboration diagram for apollo::control::Interpolation2D:
Collaboration graph

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...
 

Detailed Description

linear interpolation from key (double, double) to one double value.

Member Typedef Documentation

◆ DataType

typedef std::vector<std::tuple<double, double, double> > apollo::control::Interpolation2D::DataType

◆ KeyType

typedef std::pair<double, double> apollo::control::Interpolation2D::KeyType

Constructor & Destructor Documentation

◆ Interpolation2D()

apollo::control::Interpolation2D::Interpolation2D ( )
default

Member Function Documentation

◆ Init()

bool apollo::control::Interpolation2D::Init ( const DataType xyz)

initialize Interpolation2D internal table

Parameters
xyzpassing interpolation initialization table data
Returns
true if init is ok.

◆ Interpolate()

double apollo::control::Interpolation2D::Interpolate ( const KeyType xy) const

linear interpolate from 2D key (double, double) to one double value.

Parameters
xyzpassing interpolation initialization table data
Returns
true if init is ok.

The documentation for this class was generated from the following file: