scenario_simulator_v2 C++ API
Functions
interpolation Namespace Reference

Functions

double lerp (const double src_val, const double dst_val, const double ratio)
 
std::vector< double > lerp (const std::vector< double > &base_keys, const std::vector< double > &base_values, const std::vector< double > &query_keys)
 
double lerp (const std::vector< double > &base_keys, const std::vector< double > &base_values, const double query_key)
 

Detailed Description

Note
copied from https://github.com/tier4/autoware.universe/blob/v0.17.0/common/interpolation/include/interpolation/linear_interpolation.hpp

Function Documentation

◆ lerp() [1/3]

double interpolation::lerp ( const double  src_val,
const double  dst_val,
const double  ratio 
)

◆ lerp() [2/3]

double interpolation::lerp ( const std::vector< double > &  base_keys,
const std::vector< double > &  base_values,
const double  query_key 
)

◆ lerp() [3/3]

std::vector< double > interpolation::lerp ( const std::vector< double > &  base_keys,
const std::vector< double > &  base_values,
const std::vector< double > &  query_keys 
)