Apollo  6.0
Open source self driving car software
Namespaces | Functions
curve_fitting.h File Reference
#include <array>
#include "Eigen/Dense"
#include "modules/common/math/matrix_operations.h"
Include dependency graph for curve_fitting.h:

Go to the source code of this file.

Namespaces

 apollo
 PlanningContext is the runtime context in planning. It is persistent across multiple frames.
 
 apollo::common
 apollo::common
 
 apollo::common::math
 apollo::common::math
 

Functions

template<std::size_t N>
double apollo::common::math::EvaluatePolynomial (const std::array< double, N+1 > &coef, const double p)
 
template<std::size_t N, std::size_t M>
std::array< double, N+1 > apollo::common::math::FitPolynomial (const std::array< Eigen::Vector2d, M > &points, double *ptr_error_square=nullptr)