|
Apollo 11.0
自动驾驶开放平台
|
Math-related util functions. 更多...
#include <cmath>#include <limits>#include <type_traits>#include <utility>#include "Eigen/Dense"#include "modules/common/math/vec2d.h"命名空间 | |
| namespace | apollo::common::math |
| apollo::common::math | |
| namespace | apollo |
| class register implement | |
| namespace | apollo::common |
| apollo::common | |
函数 | |
| double | apollo::common::math::Sqr (const double x) |
| double | apollo::common::math::CrossProd (const Vec2d &start_point, const Vec2d &end_point_1, const Vec2d &end_point_2) |
| Cross product between two 2-D vectors from the common start point, and end at two other points. | |
| double | apollo::common::math::InnerProd (const Vec2d &start_point, const Vec2d &end_point_1, const Vec2d &end_point_2) |
| Inner product between two 2-D vectors from the common start point, and end at two other points. | |
| double | apollo::common::math::CrossProd (const double x0, const double y0, const double x1, const double y1) |
| Cross product between two vectors. | |
| double | apollo::common::math::InnerProd (const double x0, const double y0, const double x1, const double y1) |
| Inner product between two vectors. | |
| double | apollo::common::math::WrapAngle (const double angle) |
| Wrap angle to [0, 2 * PI). | |
| double | apollo::common::math::NormalizeAngle (const double angle) |
| Normalize angle to [-PI, PI). | |
| double | apollo::common::math::AngleDiff (const double from, const double to) |
| Calculate the difference between angle from and to | |
| int | apollo::common::math::RandomInt (const int s, const int t, unsigned int rand_seed=1) |
| Get a random integer between two integer values by a random seed. | |
| double | apollo::common::math::RandomDouble (const double s, const double t, unsigned int rand_seed=1) |
| Get a random double between two integer values by a random seed. | |
| template<typename T > | |
| T | apollo::common::math::Square (const T value) |
| Compute squared value. | |
| template<typename T > | |
| T | apollo::common::math::Clamp (const T value, T bound1, T bound2) |
| Clamp a value between two bounds. | |
| double | apollo::common::math::Gaussian (const double u, const double std, const double x) |
| double | apollo::common::math::Sigmoid (const double x) |
| Eigen::Vector2d | apollo::common::math::RotateVector2d (const Eigen::Vector2d &v_in, const double theta) |
| std::pair< double, double > | apollo::common::math::RFUToFLU (const double x, const double y) |
| std::pair< double, double > | apollo::common::math::FLUToRFU (const double x, const double y) |
| void | apollo::common::math::L2Norm (int feat_dim, float *feat_data) |
| std::pair< double, double > | apollo::common::math::Cartesian2Polar (double x, double y) |
| template<class T > | |
| std::enable_if<!std::numeric_limits< T >::is_integer, bool >::type | apollo::common::math::almost_equal (T x, T y, int ulp) |
| double | apollo::common::math::check_negative (double input_data) |
Math-related util functions.
在文件 math_utils.h 中定义.